]> git.openpandora.org Git - pandora-kernel.git/commitdiff
vfio: Tie IOMMU group reference to vfio group
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Feb 2015 22:05:06 +0000 (15:05 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 6 Feb 2015 22:05:06 +0000 (15:05 -0700)
Move the iommu_group reference from the device to the vfio_group.
This ensures that the iommu_group persists as long as the vfio_group
remains.  This can be important if all of the device from an
iommu_group are removed, but we still have an outstanding vfio_group
reference; we can still walk the empty list of devices.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c

Simple merge