Skip to content
Commit 4a68810d authored by Alex Williamson's avatar Alex Williamson
Browse files

vfio: Tie IOMMU group reference to vfio group



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: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 60720a0f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment