[libvirt] [PATCH 2/3] reattach pci device when pciBindDeviceToStub() failed

2011-03-28 Thread Wen Congyang
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 unbid it from pci-stub. --- src/util/pci.c | 90

Re: [libvirt] [PATCH 2/3] reattach pci device when pciBindDeviceToStub() failed

2011-04-04 Thread Eric Blake
On 03/28/2011 01:01 AM, Wen Congyang wrote: > 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 >

Re: [libvirt] [PATCH 2/3] reattach pci device when pciBindDeviceToStub() failed

2011-04-06 Thread Wen Congyang
At 04/05/2011 06:53 AM, Eric Blake Write: > On 03/28/2011 01:01 AM, Wen Congyang wrote: >> 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 p