I've got my external USB hub on the controller at 43:00.0, the bus is 07 and the port is 0.
My XML looks like this:
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</source>
<address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
</hostdev>
When starting the VM, I get this error:
Device 0000:07:00.0 not found: could not access /sys/bus/pci/devices/0000:07:00.0/config: No such file or directory
Also noted is the fact that it doesn't show up in /sys/bus/pci/devices in an ls (see attached)
I've also attached proof of the bus (the second screenshot).
Update: that device is a dummy:
ot: 00:07.0
Class: Host bridge
Vendor: Advanced Micro Devices, Inc. [AMD]
Device: Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
NUMANode: 0
And the real device is 43:00.3, but unRAID doesn't let me type over 1F (43=2B)
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x07' slot='0x2B' function='0x3'/>
</source>
</hostdev>
Note: upon changing the second slot (the automatically generated one after </source> to 0x00 errors out with an XML error saying it needs to be >=1.