Skip to content

Commit 03b4ac1

Browse files
authored
Merge pull request #497 from byepolr/usb-fix-m1
XHCI over EHCI for better performance as well as aarch64 support
2 parents f290fa5 + 3936e66 commit 03b4ac1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/qemu/qemu.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ func Cmdline(cfg Config) (string, []string, error) {
324324
default:
325325
// QEMU does not seem to support virtio-vga for aarch64
326326
args = append(args, "-vga", "none", "-device", "ramfb")
327-
args = append(args, "-device", "usb-ehci")
328-
args = append(args, "-device", "usb-kbd")
329-
args = append(args, "-device", "usb-mouse")
327+
args = append(args, "-device", "qemu-xhci,id=usb-bus")
328+
args = append(args, "-device", "usb-kbd,bus=usb-bus.0")
329+
args = append(args, "-device", "usb-mouse,bus=usb-bus.0")
330330
}
331331

332332
// Parallel

0 commit comments

Comments
 (0)