]> git.hungrycats.org Git - linux/commit
iommufd: Clarify IOAS_MAP_FILE dma-buf support
authorAlex Mastro <amastro@fb.com>
Wed, 10 Jun 2026 20:44:41 +0000 (13:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 12 Jun 2026 13:10:34 +0000 (10:10 -0300)
commit298ab7e6f1637cec44163f52e84e2030ec16ed9d
tree75c417105c1d9fc3c2f3c34d451aa4be4ec6ff5e
parentf2d70dbd3dcefa8e3c380beff9c31f5f033a4221
iommufd: Clarify IOAS_MAP_FILE dma-buf support

IOMMU_IOAS_MAP_FILE is documented as mapping a memfd, but the
implementation first tries to resolve the fd as a dma-buf and has a
special path for supported dma-buf exporters. In particular, VFIO PCI
dma-bufs exported through VFIO_DEVICE_FEATURE_DMA_BUF can be mapped when
they describe a single DMA range.

Update the UAPI comment so userspace understands that certain kinds of
dma-buf are supported in addition to memfd.

Fixes: 44ebaa1744fd ("iommufd: Accept a DMABUF through IOMMU_IOAS_MAP_FILE")
Link: https://patch.msgid.link/r/20260610-tmp-v1-1-b8ccbf557391@fb.com
Signed-off-by: Alex Mastro <amastro@fb.com>
Assisted-by: Codex:gpt-5.5-high
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
include/uapi/linux/iommufd.h