On Fri, Nov 07, 2025 at 12:49:34PM -0400, Jason Gunthorpe wrote: > Add IOPT_ADDRESS_DMABUF to the iopt_pages and the basic infrastructure to > create an iopt_pages from a struct dma_buf *. > > DMABUF pages are not supported for accesses, and for now can only be used > with the VFIO DMABUF exporter. > > The overall flow will be similar to memfd where the user can pass in a > DMABUF file descriptor to IOMMU_IOAS_MAP_FILE and create an area and > pages. Like other areas it can be copied and otherwise manipulated, though > there is little point in doing so. > > There is no pinned page accounting done for DMABUF maps. > > The DMABUF attachment exists so long as the dmabuf is mapped into an IOAS, > even if the IOAS is not mapped to any domains. > > Signed-off-by: Jason Gunthorpe <[email protected]> Reviewed-by: Nicolin Chen <[email protected]>
- Re: [PATCH 8/9] iommufd: Accept a DMABUF through IOM... Nicolin Chen
- Re: [PATCH 8/9] iommufd: Accept a DMABUF through... Jason Gunthorpe
- Re: [PATCH 8/9] iommufd: Accept a DMABUF thr... Nicolin Chen
- RE: [PATCH 8/9] iommufd: Accept a DMABUF through IOM... Tian, Kevin
- [PATCH 6/9] iommufd: Have pfn_reader process DMABUF iopt_... Jason Gunthorpe
- Re: [PATCH 6/9] iommufd: Have pfn_reader process DMA... Nicolin Chen
- Re: [PATCH 6/9] iommufd: Have pfn_reader process... Jason Gunthorpe
- RE: [PATCH 6/9] iommufd: Have pfn_reader process DMA... Tian, Kevin
- Re: [PATCH 6/9] iommufd: Have pfn_reader process... Jason Gunthorpe
- [PATCH 2/9] iommufd: Add DMABUF to iopt_pages Jason Gunthorpe
- Re: [PATCH 2/9] iommufd: Add DMABUF to iopt_pages Nicolin Chen
- RE: [PATCH 2/9] iommufd: Add DMABUF to iopt_pages Tian, Kevin
- Re: [PATCH 2/9] iommufd: Add DMABUF to iopt_page... Jason Gunthorpe
- Re: [PATCH 0/9] Initial DMABUF support for iommufd Nicolin Chen
- Re: [PATCH 0/9] Initial DMABUF support for iommufd Shuai Xue
- Re: [PATCH 0/9] Initial DMABUF support for iommu... Nicolin Chen
- Re: [PATCH 0/9] Initial DMABUF support for i... Shuai Xue
- Re: [PATCH 0/9] Initial DMABUF support f... Nicolin Chen
- Re: [PATCH 0/9] Initial DMABUF support for iommufd Alex Williamson
- Re: [PATCH 0/9] Initial DMABUF support for iommufd Jason Gunthorpe
- RE: [PATCH 0/9] Initial DMABUF support for iommu... Kasireddy, Vivek
