Skip to content

Commit 3563657

Browse files
999eagleastro
authored andcommitted
qemu: fix crash when using sgx
1 parent 7f93206 commit 3563657

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/runners/qemu.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ let
5757
if microvmConfig.cpu != null
5858
then microvmConfig.cpu
5959
else if system == "x86_64-linux"
60-
then "host,+x2apic"
60+
# qemu crashes when sgx is used on microvm machines: https://gitlab.com/qemu-project/qemu/-/issues/2142
61+
then "host,+x2apic,-sgx"
6162
else "host"
6263
) ];
6364

0 commit comments

Comments
 (0)