nixos/test-driver: use usb-ehci controller instead of piix3-usb-uhci

On my system this change offers ~5X speed up of
nixosTests.boot.biosUsb and nixosTests.boot.uefiUsb tests.
This commit is contained in:
misuzu 2021-05-20 22:33:08 +03:00
parent 7a1fbc38a4
commit b2319b086c

View File

@ -307,8 +307,9 @@ class Machine:
start_command += "-cdrom " + args["cdrom"] + " "
if "usb" in args:
# https://github.com/qemu/qemu/blob/master/docs/usb2.txt
start_command += (
"-device piix3-usb-uhci -drive "
"-device usb-ehci -drive "
+ "id=usbdisk,file="
+ args["usb"]
+ ",if=none,readonly "