[libvirt] [PATCH v2 0/9] Few VFIO related fixes

Shivaprasad G Bhat shivaprasadbhat at gmail.com
Sun Nov 1 21:46:34 UTC 2015


The following series fixes few VFIO related host crashes during hotplug/unplug
or bind/unbind.

---

Shivaprasad G Bhat (9):
      Implement virPCIIsAKnownStub function
      Initialize the stubDriver of pci devices if bound to a valid one
      Add iommu group number info to virPCIDevice
      Refuse to reattach from vfio if the iommu group is in use by any domain
      Wait for vfio-pci device cleanups before reassinging the device to host driver
      Split reprobe action from the virPCIUnbindFromStub into a new function
      Pass activeDevs and inactiveDevs to virPCIDeviceUnbindFromStub and virPCIDeviceBindToStub
      Postpone reprobing till all the devices in iommu group are unbound from vfio
      Wait for iommmu device to go away before reprobing the host driver


 src/libvirt_private.syms |    1 
 src/util/virhostdev.c    |   18 +++
 src/util/virpci.c        |  289 ++++++++++++++++++++++++++++++++++++++--------
 src/util/virpci.h        |    2 
 tests/virpcimock.c       |  187 +++++++++++++++++++++++++++---
 tests/virpcitest.c       |  152 ++++++++++++++++++++----
 6 files changed, 555 insertions(+), 94 deletions(-)

--
Signature




More information about the libvir-list mailing list