diff options
author | 2025-03-21 10:19:34 -0700 | |
---|---|---|
committer | 2025-03-25 10:18:31 -0300 | |
commit | 4c3f4f432c2d61ed266c797702bb58659f90bdff (patch) | |
tree | 40b5003d3528874b2d7eb09b435f19efe4659b21 /net/lapb/lapb_timer.c | |
parent | iommufd: Support pasid attach/replace (diff) | |
download | wireguard-linux-4c3f4f432c2d61ed266c797702bb58659f90bdff.tar.xz wireguard-linux-4c3f4f432c2d61ed266c797702bb58659f90bdff.zip |
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions