]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd: Disallow allocating nested parent domain with fault ID
authorYi Liu <yi.l.liu@intel.com>
Wed, 26 Feb 2025 10:40:12 +0000 (02:40 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 4 Mar 2025 13:34:54 +0000 (09:34 -0400)
commit1062d81086156e42878d701b816d2f368b53a77c
tree40bf9277d73abc2aaf1b243c8d3da4899f72e718
parent5e9f822c9c683ae884fa5e71df41d1647b2876c6
iommufd: Disallow allocating nested parent domain with fault ID

Allocating a domain with a fault ID indicates that the domain is faultable.
However, there is a gap for the nested parent domain to support PRI. Some
hardware lacks the capability to distinguish whether PRI occurs at stage 1
or stage 2. This limitation may require software-based page table walking
to resolve. Since no in-tree IOMMU driver currently supports this
functionality, it is disallowed. For more details, refer to the related
discussion at [1].

[1] https://lore.kernel.org/linux-iommu/bd1655c6-8b2f-4cfa-adb1-badc00d01811@intel.com/

Link: https://patch.msgid.link/r/20250226104012.82079-1-yi.l.liu@intel.com
Suggested-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/hw_pagetable.c
tools/testing/selftests/iommu/iommufd.c