foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.62k stars 1.14k forks source link

USB passthrough of controller does not work but GPU passthrough works. #276

Open tonymmm1 opened 4 years ago

tonymmm1 commented 4 years ago

I am unable to passthrough my system chipset usb or my pcie usb card to my vm. I am using Mac OS Catalina 10.15.6.

0000:83:00:0 Renesas Technology Corp. uPD720202 USB 3.0 Host Controller 0000:00:1D:0 Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1

The qemu proxy mouse works with laggy input but since I am unable to passthrough usb controller I am unable to utilize gpu passthrough. I have tried several hack drivers and using a TonyMac Guide as well as kernel extensions.

image

Any help or feedback would be much appreciated.

tonymmm1 commented 4 years ago

Can Confirm that I have similar issues with Mojave setup from scratch.

tonymmm1 commented 4 years ago

It seems to be a super long delay to activate the usb devices and a horrible amount of input lag and I have pinned cpu cores and done some small kvm optimizations.

AleG911 commented 4 years ago

I was able to passthrough a keyboard and a mouse just adding a simple line to the QEMU basic scrip.

You can get the info requiered by performing

lsusb

after that you will something like this:

Bus 001 Device 006: ID 2516:0042 Cooler Master Co., Ltd. MasterKeys Lite L Combo Keyboard(KB) Bus 001 Device 007: ID 1b1c:1b3c Corsair Corsair Gaming HARPOON RGB Mouse

then just replace you info in the following line with the same syntax:

-usb -device usb-host,vendorid=0x2516,productid=0x0042 \
-usb -device usb-host,vendorid=0x1b1c,productid=0x1b3c \

Hope it helps, Good luck.

tonymmm1 commented 4 years ago

I meant passthrough of usb controller itself(for hotswap) and I also did try usb device passthrough with no luck. I do have experience with pci-passthrough just not with macOS.

512yottabytes commented 3 years ago

Tried:

    -usb -device usb-host,vendorid=0x10c4,productid=0x8108 \
    -usb -device usb-host,vendorid=0x1631,productid=0x5400 \

and even Clover doesn't see keyboard and mouse, while with

    -object input-linux,id=mouse1,evdev=/dev/input/by-id/usb-YSPRINGTECH_USB_OPTICALSE-event-mouse \
    -object input-linux,id=kbd1,evdev=/dev/input/by-id/usb-BTC_USB_Keyboard-event-kbd,grab_all=on,repeat=on \

both Clover, Linux and Windows see keyboard and mouse (MacOS doesn't).