We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba6697 commit f6e7494Copy full SHA for f6e7494
lib/runners/qemu.nix
@@ -38,8 +38,16 @@ let
38
lib.optional requireUsb enableLibusb
39
++ lib.optional microvmConfig.optimize.enable minimizeQemuClosureSize
40
);
41
+ qemuPkg =
42
+ if microvmConfig.cpu == null && vmHostPackages.stdenv.hostPlatform.isLinux
43
+ then
44
+ # If no CPU is requested and the host is Linux, use qemu with KVM support (hardware-accelerated)
45
+ vmHostPackages.qemu_kvm
46
+ else
47
+ # Different CPU architectures like darwin or Non-Linux use the generic qemu package
48
+ vmHostPackages.qemu;
49
- qemu = overrideQemu vmHostPackages.qemu;
50
+ qemu = overrideQemu qemuPkg;
51
52
aioEngine = if vmHostPackages.stdenv.hostPlatform.isLinux
53
then "io_uring"
0 commit comments