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 - 03:28:30 EST


On 5/20/26 15:20, Yi Liu wrote:

+struct iommu_ioas_noiommu_get_pa {
+    __u32 size;
+    __u32 flags;
+    __u32 ioas_id;
+    __u32 __reserved;
+    __aligned_u64 iova;
+    __aligned_u64 out_length;
+    __aligned_u64 out_phys;
+};
+#define IOMMU_IOAS_NOIOMMU_GET_PA _IO(IOMMUFD_TYPE, IOMMUFD_CMD_IOAS_NOIOMMU_GET_PA)

can this work for normal vfio usage as well? e.g. vfio usages that open
devices that have iommu procetction.

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

failed to finish typing. I meant if this ioctl does not work for normal
vfio usage, mind pointing me where kernel fails it. :)