I am trying to pass through a USB controller to a VM since I can't get my iPad working in a Mac guest via usb device passthrough.
IOMMU group 3:[8086:a12f] 00:14.0 USB controller: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller (rev 31)
IOMMU group 12:[1912:0014] 02:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
IOMMU group 13:[1912:0014] 03:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03)
root@Tower:~# lspci -vs 0003:00.00
03:00.0 USB controller: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller (rev 03) (prog-if 30 [XHCI])
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at f7400000 (64-bit, non-prefetchable) [size=8K]
Capabilities: [50] Power Management version 3
Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [90] MSI-X: Enable- Count=8 Masked-
Capabilities: [a0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [150] Latency Tolerance Reporting
Kernel driver in use: vfio-pci
append intel_iommu=on vfio_iommu_type1.allow_unsafe_interrupts=1 vfio-pci.ids=1b4b:9230,8086:a170,10ec:8168,1912:0014 modprobe.blacklist=i2c_i801,i2c_smbus kvm-intel.nested=1 kvm-amd.nested=1 initrd=/bzroot
If I passthrough the onboard USB controller, everything works fine but I want to use a dedicated USB controller for my other Windows VM too.
When I passthrough the usb controller card and removes all devices attached, the Windows VM can successfully booted and able to detect the controller in Device Manager.
If I plug in any device to it, the VM will just freeze and QEMU logs gives vfio_err_notifier_handler: Unrecoverable error detected.
2018-07-02T14:38:38.571145Z qemu-system-x86_64: vfio_err_notifier_handler(0000:03:00.0) Unrecoverable error detected. Please collect any data possible and then kill the guest
If I try to boot with devices attached, same error will occur during boot.
After googling, I found there are passthrough issues about this card in VMWare ESXi,
https://communities.vmware.com/thread/436971
and they give a solution by disabling MSI of that device. I am wondering if it is the same problem of mine and there are similar method in QEMU. Thanks.