diff options
| author | Yi Liu <[email protected]> | 2025-02-26 01:18:48 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-02-28 14:07:14 +0000 |
| commit | e1ea9d30d84c65e96eba27b240be5b6798350490 (patch) | |
| tree | bee0c3c6c68709f57859e235da9031f928ec65bc /tools/testing/selftests/net/lib/py/utils.py | |
| parent | iommu: Drop iommu_group_replace_domain() (diff) | |
| download | kernel-e1ea9d30d84c65e96eba27b240be5b6798350490.tar.gz kernel-e1ea9d30d84c65e96eba27b240be5b6798350490.zip | |
iommu: Store either domain or handle in group->pasid_array
iommu_attach_device_pasid() only stores handle to group->pasid_array
when there is a valid handle input. However, it makes the
iommu_attach_device_pasid() unable to detect if the pasid has been
attached or not previously.
To be complete, let the iommu_attach_device_pasid() store the domain
to group->pasid_array if no valid handle. The other users of the
group->pasid_array should be updated to be consistent. e.g. the
iommu_attach_group_handle() and iommu_replace_group_handle().
Link: https://patch.msgid.link/r/[email protected]
Suggested-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
