[libvirt] USB hostdev de/reattaching

Martin Polednik mpolednik at redhat.com
Thu Mar 19 10:12:44 UTC 2015


Hello,

according to libvirt documentation, when using hostdev with USB device
"...the user is responsible to call virNodeDeviceDettach (or virsh nodedev-detach)
before starting the guest...". In libvirt-1.2.13-1.el7.x86_64, this leads to 

virsh nodedev-detach usb_usb1

error: Failed to detach device usb_usb1
error: invalid argument: device usb_usb1 is not a PCI device

The failure is most probably caused in qemuNodeDeviceDeta where qemuNodeDeviceGetPCIInfo
is called. Is it a bug, or usb hostdev can be done without detaching/reattaching?

Thanks,
mpolednik 




More information about the libvir-list mailing list