Use q35 and xHCI for more performance

master
Markus Partheymüller 2021-02-12 10:50:21 +01:00
parent fbd5b97d79
commit 90cc7b14a4
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
, timeZone ? "UTC" , timeZone ? "UTC"
, services ? {} , services ? {}
, impureShellCommands ? [] , impureShellCommands ? []
, driveLetter ? "E:" , driveLetter ? "D:"
, ... , ...
}: }:

View File

@ -9,9 +9,10 @@ rec {
"-cpu host" "-cpu host"
"-smp ${cores}" "-smp ${cores}"
"-m ${qemuMem}" "-m ${qemuMem}"
"-M q35"
"-bios ${pkgs.OVMF.fd}/FV/OVMF.fd" "-bios ${pkgs.OVMF.fd}/FV/OVMF.fd"
"-rtc base=${baseRtc}" "-rtc base=${baseRtc}"
"-device piix3-usb-uhci" "-device qemu-xhci"
"-device e1000,netdev=n1" "-device e1000,netdev=n1"
] ++ extraFlags; ] ++ extraFlags;