diff options
author | Jason Gunthorpe <[email protected]> | 2022-10-07 11:04:41 -0300 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2022-10-07 08:10:52 -0600 |
commit | 3dd59a7dcb97e6e40d6385a1a3faa9392b6d184a (patch) | |
tree | 1e03b6764480252a87cf4264fe3b2541d82684e9 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 819da99a7360f7e197038d12f0eba626bde11856 (diff) |
vfio: Make the group FD disassociate from the iommu_group
Allow the vfio_group struct to exist with a NULL iommu_group pointer. When
the pointer is NULL the vfio_group users promise not to touch the
iommu_group. This allows a driver to be hot unplugged while userspace is
keeping the group FD open.
Remove all the code waiting for the group FD to close.
This fixes a userspace regression where we learned that virtnodedevd
leaves a group FD open even though the /dev/ node for it has been deleted
and all the drivers for it unplugged.
Fixes: ca5f21b25749 ("vfio: Follow a strict lifetime for struct iommu_group")
Reported-by: Christian Borntraeger <[email protected]>
Tested-by: Matthew Rosato <[email protected]>
Tested-by: Christian Borntraeger <[email protected]>
Tested-by: Eric Farman <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions