diff options
author | Lu Baolu <[email protected]> | 2024-07-02 14:34:35 +0800 |
---|---|---|
committer | Will Deacon <[email protected]> | 2024-07-04 13:46:18 +0100 |
commit | 14678219cf4093e897ab353fd78eab7994d1be7d (patch) | |
tree | 606c28e3ebdd150803572d5b5aad0586a46e086b /arch/mips/bcm63xx/dev-uart.c | |
parent | 83a7eefedc9b56fe7bfeff13b6c7356688ffa670 (diff) |
iommu: Introduce domain attachment handle
Currently, when attaching a domain to a device or its PASID, domain is
stored within the iommu group. It could be retrieved for use during the
window between attachment and detachment.
With new features introduced, there's a need to store more information
than just a domain pointer. This information essentially represents the
association between a domain and a device. For example, the SVA code
already has a custom struct iommu_sva which represents a bond between
sva domain and a PASID of a device. Looking forward, the IOMMUFD needs
a place to store the iommufd_device pointer in the core, so that the
device object ID could be quickly retrieved in the critical fault handling
path.
Introduce domain attachment handle that explicitly represents the
attachment relationship between a domain and a device or its PASID.
Co-developed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'arch/mips/bcm63xx/dev-uart.c')
0 files changed, 0 insertions, 0 deletions