[vfio-users] UEFI + PCI USB Device

Blank Field ihatethisfield at gmail.com
Sat Oct 31 06:42:27 UTC 2015


Add isa debug console to your script:
-global isa-debugcon.iobase=0x402 \
-debugcon file:"debug.log"
OVMF will print out verbose debug messages to $(pwd)/debug.log
On Oct 31, 2015 6:27 AM, "Brett Foster" <fosterb at edgeandvertex.org> wrote:

> Hi all,
>
> 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.
>
> 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:
>
> echo 0000:04:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind
>
> Thoughts?
>
> Kernel: 4.0.4-301.fc22.x86_64
> Qemu: qemu-2.3.0-3.fc22
>
> The only seemingly relevant messages in the kernel log are:
> [ 6209.596712] vfio-pci 0000:05:00.1: enabling device (0400 -> 0402)
> [ 6209.619946] vfio-pci 0000:04:00.0: enabling device (0400 -> 0402)
>
> The card is on its own group:
> /sys/kernel/iommu_groups/13/devices/0000:04:00.005:00.0 VGA compatible
> controller [0300]:
> The GPU is on these groups:
> /sys/kernel/iommu_groups/14/devices/0000:05:00.0
> /sys/kernel/iommu_groups/14/devices/0000:05:00.1
>
> 04:00.0 USB controller [0c03]: Renesas Technology Corp. uPD720201 USB 3.0
> Host Controller [1912:0014] (rev 03) (prog-if 30 [XHCI])
>     Subsystem: Renesas Technology Corp. uPD720201 USB 3.0 Host Controller
> [1912:0014]
>     Flags: bus master, fast devsel, latency 0, IRQ 19
>     Memory at f7200000 (64-bit, non-prefetchable) [size=8K]
>     Capabilities: <access denied>
>     Kernel driver in use: vfio-pci
> Advanced Micro Devices, Inc. [AMD/ATI] Caicos PRO [Radeon HD 7450]
> [1002:677b] (prog-if 00 [VGA controller])
>     Subsystem: ASUSTeK Computer Inc. Device [1043:3025]
>     Flags: bus master, fast devsel, latency 0, IRQ 16
>     Memory at e0000000 (64-bit, prefetchable) [size=256M]
>     Memory at f7120000 (64-bit, non-prefetchable) [size=128K]
>     I/O ports at c000 [size=256]
>     Expansion ROM at f7100000 [disabled] [size=128K]
>     Capabilities: <access denied>
>     Kernel driver in use: vfio-pci
>     Kernel modules: radeon
>
> 05:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos
> HDMI Audio [Radeon HD 6400 Series] [1002:aa98]
>     Subsystem: ASUSTeK Computer Inc. Device [1043:aa98]
>     Flags: bus master, fast devsel, latency 0, IRQ 17
>     Memory at f7140000 (64-bit, non-prefetchable) [size=16K]
>     Capabilities: <access denied>
>     Kernel driver in use: vfio-pci
>     Kernel modules: snd_hda_intel
>
>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20151031/6e7cfc71/attachment.htm>


More information about the vfio-users mailing list