]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu: Extend domain attach group with handle support
authorLu Baolu <baolu.lu@linux.intel.com>
Tue, 2 Jul 2024 06:34:38 +0000 (14:34 +0800)
committerWill Deacon <will@kernel.org>
Thu, 4 Jul 2024 12:46:18 +0000 (13:46 +0100)
commit8519e689834a3ecf9a36332a9abb1844bd34e459
treebf9b947d33c972b11efe210add348d7b002fc1e4
parent06cdcc32d65759d42c6340700796e2906045b6a5
iommu: Extend domain attach group with handle support

Unlike the SVA case where each PASID of a device has an SVA domain
attached to it, the I/O page faults are handled by the fault handler
of the SVA domain. The I/O page faults for a user page table might
be handled by the domain attached to RID or the domain attached to
the PASID, depending on whether the PASID table is managed by user
space or kernel. As a result, there is a need for the domain attach
group interfaces to have attach handle support. The attach handle
will be forwarded to the fault handler of the user domain.

Add some variants of the domain attaching group interfaces so that they
could support the attach handle and export them for use in IOMMUFD.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240702063444.105814-5-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/iommu-priv.h
drivers/iommu/iommu.c