Re: [PATCH v5 5/9] iommufd: Add an ioctl to query PA from IOVA for noiommu mode
From: Yi Liu
Date: Wed May 20 2026 - 10:53:15 EST
On 5/20/26 22:22, Jason Gunthorpe wrote:
On Wed, May 20, 2026 at 03:20:15PM +0800, Yi Liu wrote:
can this work for normal vfio usage as well? e.g. vfio usages that open
devices that have iommu procetction.
No, it must be blocked we cannot leak physical addresses to userspace.
My concern is kernel does not prevent normal vfio usage from invoking
this ioctl. If it works for normal vfio usage as well, may just remove
the noiommu term from thie name. If not, may be
This is a bug
got it. After a second look, I got where it gets failed.
+ if (!area->storage_domain ||
+ area->storage_domain->owner != &iommufd_noiommu_ops) {
+ rc = -EOPNOTSUPP;
+ goto unlock_exit;
+ }
Regards,
Yi Liu