PCI passthrough issues

53 views
Skip to first unread message

Ana Z

unread,
Jan 15, 2020, 10:57:09 AM1/15/20
to qubes-users
Hi,

I tried to passthrough my old PCI USB controller (chipset NEC 0720100AGM) to Windows 7 HVM but I ran into some problems.

I first found the controller in dom0 with qvm-pci:

dom0:01_05.0  USB controller: NEC Corporation OHCI USB Controller                                                            
dom0:01_05.1  USB controller: NEC Corporation OHCI USB Controller                                                            
dom0:01_05.2  USB controller: NEC Corporation uPD72010x USB 2.0 Controller

I then attached those three with qvm-pci attach --persistent --option permissive=true --option no-strict-reset=true <win7 HVM qube> <pci number> and I got:

dom0:01_05.0  USB controller: NEC Corporation OHCI USB Controller                                                             win7-z (permissive=true, no-strict-reset=true)
dom0:01_05.1  USB controller: NEC Corporation OHCI USB Controller                                                             win7-z (permissive=true, no-strict-reset=true)
dom0:01_05.2  USB controller: NEC Corporation uPD72010x USB 2.0 Controller                                             win7-z (permissive=true, no-strict-reset=true)

I tried running the Windows 7 HVM and the PCI USB controller was recognized, alongside USB Root Hubs, but whenever I physically attach an USB device (3 different sticks and 1 WLAN stick) I always get "USB Device Not Recognized" and "Unknown USB Device" in one of the used ports.

Before I attached the controller to Windows HVM, dom0 recognized any device attached to the controller, and I tried booting up my spare disk with the same Windows 7 installation I used for HVM and the PCI controller works there, with recognized USB devices when attached.

My question is, what is the next step I should make in troubleshooting the problem?

awokd

unread,
Jan 15, 2020, 2:36:28 PM1/15/20
to qubes...@googlegroups.com
Ana Z:
> Hi,
>
> I tried to passthrough my old PCI USB controller (chipset NEC 0720100AGM)
> to Windows 7 HVM but I ran into some problems.

> dom0:01_05.0 USB controller: NEC Corporation OHCI USB
> Controller
> win7-z (permissive=true, no-strict-reset=true)
> dom0:01_05.1 USB controller: NEC Corporation OHCI USB
> Controller
> win7-z (permissive=true, no-strict-reset=true)
> dom0:01_05.2 USB controller: NEC Corporation uPD72010x USB 2.0
> Controller win7-z
> (permissive=true, no-strict-reset=true)

If you haven't, try attaching these with one or both options set to
false. If it still doesn't help, see if
xen-pciback.hide=(01:05.0)(01:05.1)(01:05.2) in xen.cfg helps.

--
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots

Ana Z

unread,
Jan 15, 2020, 4:36:41 PM1/15/20
to qubes-users
Hi awokd,

I tried both combinations beforehand, neither of them helped.

I'm not really sure whether I've added xen-pciback.hide to the right place, but I added it to the /etc/default/grub under GRUB_CMDLINE_XEN_DEFAULT and commit the change. If that's the thing I should've done, sadly, it still doesn't work.

awokd

unread,
Jan 16, 2020, 11:59:53 AM1/16/20
to qubes...@googlegroups.com
Ana Z:
> Hi awokd,
>
> I tried both combinations beforehand, neither of them helped.
>
> I'm not really sure whether I've added xen-pciback.hide to the right place,
> but I added it to the */etc/default/grub under *GRUB_CMDLINE_XEN_DEFAULT
> and commit the change. If that's the thing I should've done, sadly, it
> still doesn't work.
>
> Dana srijeda, 15. siječnja 2020. u 19:36:28 UTC, korisnik awokd napisao je:
>>
>> Ana Z:
>>> Hi,
>>>
>>> I tried to passthrough my old PCI USB controller (chipset NEC
>> 0720100AGM)
>>> to Windows 7 HVM but I ran into some problems.
>>
>>> dom0:01_05.0 USB controller: NEC Corporation OHCI USB
>>> Controller
>>> win7-z (permissive=true, no-strict-reset=true)
>>> dom0:01_05.1 USB controller: NEC Corporation OHCI USB
>>> Controller
>>> win7-z (permissive=true, no-strict-reset=true)
>>> dom0:01_05.2 USB controller: NEC Corporation uPD72010x USB 2.0
>>> Controller win7-z
>>> (permissive=true, no-strict-reset=true)
>>
>> If you haven't, try attaching these with one or both options set to
>> false. If it still doesn't help, see if
>> xen-pciback.hide=(01:05.0)(01:05.1)(01:05.2) in xen.cfg helps.

Yes, that's the right place. Didn't catch it was PCI at first, vs. PCIe.
It's possible that support for PCI has degraded. Might be worth trying a
PCIe USB controller (but search this list for a known good model).
Reply all
Reply to author
Forward
0 new messages