]> xenbits.xensource.com Git - libvirt.git/commit
virpci: Don't error on unbinded devices
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 31 Oct 2013 10:32:58 +0000 (10:32 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Nov 2013 16:28:51 +0000 (17:28 +0100)
commitdf4283a55bf3516b333352e2052dbe3317936953
tree6b0d4f8b057066a2fc235409ed025a9224df67a2
parent05b28ca23d76fc3f4f2b87faef2b9db9520b2c36
virpci: Don't error on unbinded devices

https://bugzilla.redhat.com/show_bug.cgi?id=1018897

If a PCI deivce is not binded to any driver (e.g. there's yet no PCI
driver in the linux kernel) but still users want to passthru the device
we fail the whole operation as we fail to resolve the 'driver' link
under the PCI device sysfs tree. Obviously, this is not a fatal error
and it shouldn't be error at all.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virpci.c