RE: [PATCH v5 8/8] iommufd: Add dma_buf_pin()

From: Tian, Kevin

Date: Thu Jan 29 2026 - 02:09:17 EST


> From: Leon Romanovsky <leon@xxxxxxxxxx>
> Sent: Sunday, January 25, 2026 3:14 AM
>
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> IOMMUFD relies on a private protocol with VFIO, and this always operated
> in pinned mode.
>
> Now that VFIO can support pinned importers update IOMMUFD to invoke
> the
> normal dma-buf flow to request pin.
>
> This isn't enough to allow IOMMUFD to work with other exporters, it still
> needs a way to get the physical address list which is another series.
>
> IOMMUFD supports the defined revoke semantics. It immediately stops and
> fences access to the memory inside it's invalidate_mappings() callback,
> and it currently doesn't use scatterlists so doesn't call map/unmap at
> all.
>
> It is expected that a future revision can synchronously call unmap from
> the move_notify callback as well.
>
> Acked-by: Christian König <christian.koenig@xxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>