[PATCH 0/3] reattach pci devices when qemuPrepareHostdevPCIDevices() failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I try to attach a pci device to guest OS, libvirtd resets the pci failed.
But I can not use this pci device after attaching pci device failed. I must
rollback the operation by hand.

I think libvirtd should auto rollback the operation when it failed.

Wen Congyang (3):
  remove devices from driver->activePciHostdevs when
    qemuPrepareHostdevPCIDevices() failed
  reattach pci device when pciBindDeviceToStub() failed
  reattach pci devices when qemuPrepareHostdevPCIDevices() failed

 src/qemu/qemu_hostdev.c |   33 ++++++++++++++---
 src/util/pci.c          |   90 +++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 107 insertions(+), 16 deletions(-)

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]