]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
reattach pci device when pciBindDeviceToStub() failed
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 6 Apr 2011 07:13:14 +0000 (15:13 +0800)
committerWen Congyang <wency@cn.fujitsu.com>
Thu, 7 Apr 2011 05:09:46 +0000 (13:09 +0800)
commit4e8969ebcfbbd9fc08535de6e2f63cc5e5a563d1
tree4d950ee24d639bcbb4df93d314df843ff54ec664
parent9121b1930ffd0d65757e2204ecec03d8bfb01c3c
reattach pci device when pciBindDeviceToStub() failed

We should bind pci device to original driver when pciBindDeviceToStub() failed.
If the pci device is not bound to any driver before calling pciBindDeviceToStub(),
we should only unbind it from pci-stub. If it is bound to pci-stub, we should not
unbind it from pci-stub.
src/util/pci.c