]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow vfio hotplug of a device to the domain which owns the iommu
authorShivaprasad G Bhat <shivaprasadbhat@gmail.com>
Tue, 14 Jul 2015 11:56:33 +0000 (17:26 +0530)
committerCole Robinson <crobinso@redhat.com>
Mon, 21 Sep 2015 23:25:58 +0000 (19:25 -0400)
commit87bacf5df2d93427302c3504efd6326002636a6b
tree8d6c770c9e65f7546d6c5133fb441e52ba2e4d86
parent9e41bdf4d08dbefa8f97beb3d1c2bbefa45dac00
Allow vfio hotplug of a device to the domain which owns the iommu

The commit 7e72de4 didn't consider the hotplug scenarios. The patch addresses
the hotplug case whereby if atleast one of the pci function is owned by a
guest, the hotplug of other functions/devices in the same iommu group to the
same guest goes through successfully.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
(cherry picked from commit e3810db34f1acb74dfcfd69219930e23a30284f6)
src/util/virhostdev.c