From 35636572c272bf5fd21300ff845340788e3d99bd Mon Sep 17 00:00:00 2001 From: Sophie Tauchert Date: Fri, 8 Mar 2024 09:57:04 +0100 Subject: [PATCH] qemu: fix crash when using sgx --- lib/runners/qemu.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/runners/qemu.nix b/lib/runners/qemu.nix index 4161de76..c48e1501 100644 --- a/lib/runners/qemu.nix +++ b/lib/runners/qemu.nix @@ -57,7 +57,8 @@ let if microvmConfig.cpu != null then microvmConfig.cpu else if system == "x86_64-linux" - then "host,+x2apic" + # qemu crashes when sgx is used on microvm machines: https://gitlab.com/qemu-project/qemu/-/issues/2142 + then "host,+x2apic,-sgx" else "host" ) ];