]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: Wait for dma-buf invalidation to complete
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 31 Jan 2026 05:34:14 +0000 (07:34 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 23 Feb 2026 15:30:16 +0000 (16:30 +0100)
commit1a8a5227f22996d3e503c60569b1813a404da033
tree2965b2eafd3b8ed0875fd0e6d37df5a6eaac2a1a
parenta408c0ca0c411ca1ead995bdae3112a806c87556
vfio: Wait for dma-buf invalidation to complete

dma-buf invalidation is handled asynchronously by the hardware, so VFIO
must wait until all affected objects have been fully invalidated.

In addition, the dma-buf exporter is expecting that all importers unmap any
buffers they previously mapped.

Fixes: 5d74781ebc86 ("vfio/pci: Add dma-buf export support for MMIO regions")
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Alex Williamson <alex@shazbot.org>
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-4-463d956bd527@nvidia.com
drivers/vfio/pci/vfio_pci_dmabuf.c