On Thu, 2014-11-13 at 12:36 -0500, Steven DuChene wrote: > Alex: > Thanks for the quick reply. > Yes, I am using qemu:args in the xml file. > I looked around via google for an example of how to use hostdev in the > xml file for the audio or video devices. > I seem to recall the only example I could find was a hostdev section in > the libvirt wiki for a NIC card. > Do you know of any example xml files where hostdev is used for video and > audio devices? virt-manager will happily create one: <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </source> <alias name='hostdev0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0' multifunction='on'/> </hostdev> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x1'/> </source> <alias name='hostdev1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x1'/> </hostdev> In this case I've manually updated the xml so that the GPU+audio is presented to the guest as a multifunction device. This is not required. Using separate slots in the guest also works. The canonical reference for libvirt syntax is here: http://libvirt.org/formatdomain.html Also note that we've had issues with the audio function on Quadro cards and don't officially support assignment of them. The INTx disable support in the hardware seems to be broken. If you do assign it, I recommend forcing it to use MSI interrupts: http://vfio.blogspot.com/2014/09/vfio-interrupts-and-how-to-coax-windows.html Otherwise you can bind it to vfio-pci or pci-stub and only assign the GPU function to the guest. Thanks, Alex -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html