[vfio-users] PCI passthrough prevents autostart of guest

Pittman, Randall Randall.Pittman at oregonstate.edu
Thu Mar 31 20:54:50 UTC 2016


Hi,

I have a custom PCI data acquisition card for which I only have Windows XP drivers, so I'm running WinXP in a QEMU-KVM VM under CentOS 7. I have PCI passthrough working fine. (I added the PCI card to the VM with virt-manager) However, the VM will not autostart on boot of the host machine. I have the following output in /var/log/libvirt/qemu/win_xp.log:
2016-03-29T18:29:26.191010Z qemu-kvm: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: vfio: Error: Failed to setup INTx fd: Device or resource busy
2016-03-29T18:29:26.289154Z qemu-kvm: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Device initialization failed.
2016-03-29T18:29:26.289195Z qemu-kvm: -device vfio-pci,host=05:00.0,id=hostdev0,bus=pci.0,addr=0x7: Device 'vfio-pci' could not be initialized


Again, this only happens at boot when the VM should be auto-starting. I can start it just fine manually with virsh or virt-manager. Perhaps the issue has to do with libvirtd starting too soon? N.b. I'm new to messing with init systems in general, systemd in particular.

Any help would be greatly appreciated. I haven't had any responses from the libvirt-users list, the CentOS forums, or my local university Linux mailing list.

Thanks,
Randy

Extended info:

*         win_xp.xml file: http://pastebin.com/uBSbGDu6

*         Software versions from yum:

o   CentOS - 7.2.1511

o   libvirt - 1.2.17-13.el7_2.3

o   qemu - 2:2.0.0-1.el7.6

o   qemu-kvm - 10:1.5.3-105.el7_2.3

*         Hardware:

o   CPU: Xeon E3-1231 v3, intel_iommu=on set in grub2

o   lspci entry for the custom PCI card:
05:00.0 Unassigned class [ff00]: PLX Technology, Inc. PCI9054 32-bit 33MHz PCI <-> IOBus Bridge (rev 0b)


Randall Pittman
Faculty Research Assistant | School of Civil and Construction Engineering | Oregon State University
Location: 006 Covell Hall | Mailing: 101 Kearney Hall | Corvallis, OR 97331-2132
Office: 541-737-2102 | Mobile: 541-286-7896

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160331/cc330cd5/attachment.htm>


More information about the vfio-users mailing list