<div dir="ltr"><div><div>Hi all,<br><br></div>So I've been fumbling my way through setting up a virtual machine with GPU pass through. I was able to get UEFI + ATI R5 230 to windows 8.1 installer. Great... now I wanted to add a PCI USB 3.0 card to the VM. When I do, the VM locks up at the main OVMF screen that says "TianoCore" and so many bytes of system memory tested.<br><br></div><div>Unlike the GPU I found I couldn't figure out great way to prevent the standard linux drivers from picking up the device before being able to map to vfio-pci. So I unbind the device when booting:<br><br>echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind<br></div><div><br>Thoughts?<br><br></div><div>Kernel: 4.0.4-301.fc22.x86_64<br></div><div>Qemu: qemu-2.3.0-3.fc22<br><br></div>The only seemingly relevant messages in the kernel log are:<br>[ 6209.596712] vfio-pci 0000:05:00.1: enabling device (0400 -> 0402)<br>[ 6209.619946] vfio-pci 0000:04:00.0: enabling device (0400 -> 0402)<br><div><br>The card is on its own group:<br>/sys/kernel/iommu_groups/13/devices/0000:04:00.005:00.0 VGA compatible controller [0300]: <br>The GPU is on these groups:<br>/sys/kernel/iommu_groups/14/devices/0000:05:00.0<br>/sys/kernel/iommu_groups/14/devices/0000:05:00.1<br><br>04:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014] (rev 03) (prog-if 30 [XHCI])<br>    Subsystem: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller [1912:0014]<br>    Flags: bus master, fast devsel, latency 0, IRQ 19<br>    Memory at f7200000 (64-bit, non-prefetchable) [size=8K]<br>    Capabilities: <access denied><br>    Kernel driver in use: vfio-pci<br>Advanced Micro Devices, Inc. [AMD/ATI] Caicos PRO [Radeon HD 7450] [1002:677b] (prog-if 00 [VGA controller])<br>    Subsystem: ASUSTeK Computer Inc. Device [1043:3025]<br>    Flags: bus master, fast devsel, latency 0, IRQ 16<br>    Memory at e0000000 (64-bit, prefetchable) [size=256M]<br>    Memory at f7120000 (64-bit, non-prefetchable) [size=128K]<br>    I/O ports at c000 [size=256]<br>    Expansion ROM at f7100000 [disabled] [size=128K]<br>    Capabilities: <access denied><br>    Kernel driver in use: vfio-pci<br>    Kernel modules: radeon<br><br>05:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos HDMI Audio [Radeon HD 6400 Series] [1002:aa98]<br>    Subsystem: ASUSTeK Computer Inc. Device [1043:aa98]<br>    Flags: bus master, fast devsel, latency 0, IRQ 17<br>    Memory at f7140000 (64-bit, non-prefetchable) [size=16K]<br>    Capabilities: <access denied><br>    Kernel driver in use: vfio-pci<br>    Kernel modules: snd_hda_intel<br><br><br></div></div>