• J
    pci: Fix failure paths in detach · d8ab981b
    Jiri Denemark 提交于
    https://bugzilla.redhat.com/show_bug.cgi?id=1046919
    
    Since commit v0.9.0-47-g4e8969eb (released in 0.9.1) some failures during
    device detach were reported to callers of virPCIDeviceBindToStub as
    success. For example, even though a device seemed to be detached
    
        virsh # nodedev-detach pci_0000_07_05_0 --driver vfio
        Device pci_0000_07_05_0 detached
    
    one could find similar message in libvirt logs:
    
        Failed to bind PCI device '0000:07:05.0' to vfio-pci: No such device
    
    This patch fixes these paths and also avoids overwriting real errors
    with errors encountered during a cleanup phase.
    d8ab981b
virpci.c 74.7 KB