Struggling a bit with this. Has anyone done this before?
I'm getting this error when I go to start the domain:
error: Failed to bind PCI device '0000:03:00.0' to vfio-pci: No such device
Looks like it's unbinding it from the host but can't bind to the vfio device? I'm also getting:
wmfo-admin@tupac:~$ dmesg | grep vfio
[ 1318.782176] vfio-pci: probe of 0000:03:00.0 failed with error -22
Not sure what that error code means.
This is the XML dump of the PCI device (there's a group of two; apparently the PCIe version is the PCI version with a PCIe=>PCI adapter lol):
wmfo-admin@tupac:~$ virsh nodedev-dumpxml pci_0000_03_00_0
<device>
<name>pci_0000_03_00_0</name>
<path>/sys/devices/pci0000:00/0000:00:02.2/0000:03:00.0</path>
<parent>pci_0000_00_02_2</parent>
<capability type='pci'>
<domain>0</domain>
<bus>3</bus>
<slot>0</slot>
<function>0</function>
<product id='0x8240'>XIO2001 PCI Express-to-PCI Bridge</product>
<vendor id='0x104c'>Texas Instruments</vendor>
<iommuGroup number='28'>
<address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
<address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
</iommuGroup>
</capability>
</device>
Notice they're in a group (03 is the PCI adapter, 04 is the TI multimedia contorller). I don't know if I'm supposed to attach them together or whether I should only attach the controller? Probably depends how the driver is written.
This is with the pci device set to "managed" so qemu should be handling all the management shenanigans. I was able to follow
these instructions all the way to the hotplug step but I couldn't figure out what the "guest command interface" was...
--Nick