Skip to content

Commit

Permalink
qemu: dont set mq=on,vectors=N for virtio-net-device
Browse files Browse the repository at this point in the history
Setting vcpu > 1 for qemu guests would result in the following error
during guest startup:

  qemu-system-x86_64: -device virtio-net-device,netdev=host1, \
    mac=02:00:00:00:00:01,mq=on,vectors=6: Property \
    'virtio-net-device.vectors' not found
  • Loading branch information
sarcasticadmin authored and astro committed Feb 8, 2024
1 parent 85ee3f9 commit f0d8f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runners/qemu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ in {
(microvmConfig.cpu == null && system != "x86_64-linux")
) ",romfile="
}${
lib.optionalString tapMultiQueue ",mq=on,vectors=${toString (2 * vcpu + 2)}"
lib.optionalString (tapMultiQueue && requirePci) ",mq=on,vectors=${toString (2 * vcpu + 2)}"
}"
]) interfaces
)
Expand Down

0 comments on commit f0d8f6d

Please sign in to comment.