From e1c0f474c394e2f7ce380d97dfac71bec157f056 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Mon, 27 Nov 2023 15:10:25 +0100 Subject: [PATCH] Support for QEMU supervisor in Aleph-vm (#78) * wip allow qemu backend * switch format for qemu message * iteration on format * iteration v3 * v4 iteration of the format --- aleph_message/models/execution/environment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/aleph_message/models/execution/environment.py b/aleph_message/models/execution/environment.py index 863d5d1..93372e7 100644 --- a/aleph_message/models/execution/environment.py +++ b/aleph_message/models/execution/environment.py @@ -81,12 +81,18 @@ class CpuProperties(HashableModel): class Config: extra = Extra.forbid +class HypervisorType(str, Enum): + qemu = 'qemu' + firecracker = 'firecracker' + + class FunctionEnvironment(HashableModel): reproducible: bool = False internet: bool = False aleph_api: bool = False shared_cache: bool = False + hypervisor: Optional[HypervisorType] class NodeRequirements(HashableModel):