From: Jason Gunthorpe <jgg@ziepe.ca>
To: Alex Mastro <amastro@fb.com>
Cc: Kevin Tian <kevin.tian@intel.com>,
Nicolin Chen <nicolinc@nvidia.com>,
iommu@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] iommufd: Clarify IOAS_MAP_FILE dma-buf support
Date: Fri, 12 Jun 2026 10:11:30 -0300 [thread overview]
Message-ID: <20260612131130.GK1066031@ziepe.ca> (raw)
In-Reply-To: <20260610-tmp-v1-1-b8ccbf557391@fb.com>
On Wed, Jun 10, 2026 at 01:44:41PM -0700, Alex Mastro wrote:
> 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")
> Signed-off-by: Alex Mastro <amastro@fb.com>
> Assisted-by: Codex:gpt-5.5-high
> ---
> include/uapi/linux/iommufd.h | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
Applied thanks
Jason
prev parent reply other threads:[~2026-06-12 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 20:44 Alex Mastro
2026-06-12 13:11 ` Jason Gunthorpe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260612131130.GK1066031@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=amastro@fb.com \
--cc=iommu@lists.linux.dev \
--cc=kevin.tian@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolinc@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®