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

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



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(-)


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