]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: Permit VFIO to work with pinned importers
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 31 Jan 2026 05:34:17 +0000 (07:34 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 23 Feb 2026 18:51:41 +0000 (19:51 +0100)
commit6ffe939bf94fbbeaaa4050a0e9c22820e959b15f
tree25afc2b19ecae3bc2c7cd48e5470c185e15196e9
parentbe6d4c9e9d714ebbf358be41332726a0f94b9ffa
vfio: Permit VFIO to work with pinned importers

Till now VFIO has rejected pinned importers, largely to avoid being used
with the RDMA pinned importer that cannot handle a move_notify() to revoke
access.

Using dma_buf_attach_revocable() it can tell the difference between pinned
importers that support the flow described in dma_buf_invalidate_mappings()
and those that don't.

Thus permit compatible pinned importers.

This is one of two items IOMMUFD requires to remove its private interface
to VFIO's dma-buf.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Alex Williamson <alex@shazbot.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20260131-dmabuf-revoke-v7-7-463d956bd527@nvidia.com
drivers/vfio/pci/vfio_pci_dmabuf.c