diff options
author | Yi Liu <yi.l.liu@intel.com> | 2025-03-21 20:19:34 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2025-03-25 16:18:31 +0300 |
commit | 4c3f4f432c2d61ed266c797702bb58659f90bdff (patch) | |
tree | 40b5003d3528874b2d7eb09b435f19efe4659b21 /tools/perf/scripts/python/syscall-counts.py | |
parent | 2fb69c602d57f77483b8dcdd12d17408a09f76fe (diff) | |
download | linux-4c3f4f432c2d61ed266c797702bb58659f90bdff.tar.xz |
iommufd: Enforce PASID-compatible domain for RID
Per the definition of IOMMU_HWPT_ALLOC_PASID, iommufd needs to enforce
the RID to use PASID-compatible domain if PASID has been attached, and
vice versa. The PASID path has already enforced it. This adds the
enforcement in the RID path.
This enforcement requires a lock across the RID and PASID attach path,
the idev->igroup->lock is used as both the RID and the PASID path holds
it.
Link: https://patch.msgid.link/r/20250321171940.7213-13-yi.l.liu@intel.com
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions