Re: [PATCH 1/2] vfio: Create vfio_fs_type with inode per device

Jason Gunthorpe
2024-05-24T13:24:39Z

On Thu, May 23, 2024 at 01:56:26PM -0600, Alex Williamson wrote:
> 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>
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
> drivers/vfio/device_cdev.c | 7 ++++++
> drivers/vfio/group.c | 7 ++++++
> drivers/vfio/vfio_main.c | 44 ++++++++++++++++++++++++++++++++++++++
> include/linux/vfio.h | 1 +
> 4 files changed, 59 insertions(+)

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>

Jason