]> git.ipfire.org Git - thirdparty/linux.git/commit
vfio: Create vfio_fs_type with inode per device
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 30 May 2024 04:52:30 +0000 (22:52 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 31 May 2024 21:15:51 +0000 (15:15 -0600)
commitb7c5e64fecfa88764791679cca4786ac65de739e
tree8332954eb89cadc14d233624988b33ef34c987ae
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
vfio: Create vfio_fs_type with inode per device

By linking all the device fds we provide to userspace to an
address space through a new pseudo fs, we can use tools like
unmap_mapping_range() to zap all vmas associated with a device.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240530045236.1005864-2-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/device_cdev.c
drivers/vfio/group.c
drivers/vfio/vfio_main.c
include/linux/vfio.h