summaryrefslogtreecommitdiffstats
path: root/drivers/vfio/mdev/vfio_mdev.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2017-08-18 06:10:20 +0200
committerAlex Williamson <alex.williamson@redhat.com>2017-08-30 22:02:16 +0200
commit6586b561a91cd80a91c8f107ed0d144feb3eadc2 (patch)
tree5988e991a86aecd42fb466dbc6793ad702246319 /drivers/vfio/mdev/vfio_mdev.c
parentvfio: fix noiommu vfio_iommu_group_get reference count (diff)
downloadlinux-6586b561a91cd80a91c8f107ed0d144feb3eadc2.tar.xz
linux-6586b561a91cd80a91c8f107ed0d144feb3eadc2.zip
vfio: Stall vfio_del_group_dev() for container group detach
When the user unbinds the last device of a group from a vfio bus driver, the devices within that group should be available for other purposes. We currently have a race that makes this generally, but not always true. The device can be unbound from the vfio bus driver, but remaining IOMMU context of the group attached to the container can result in errors as the next driver configures DMA for the device. Wait for the group to be detached from the IOMMU backend before allowing the bus driver remove callback to complete. Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/mdev/vfio_mdev.c')
0 files changed, 0 insertions, 0 deletions