diff options
author | Vasant Hegde <[email protected]> | 2024-10-28 09:38:07 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-10-29 10:08:22 +0100 |
commit | ce2cd175469f6cb56e8de9bf87805206c8d19764 (patch) | |
tree | 22f77c41bda4638ec3b48bd5c88489cd79eb7138 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | a005ef62f9922ae023aec63d673217486656b6bc (diff) |
iommu/amd: Enhance amd_iommu_domain_alloc_user()
Previous patch enhanced core layer to check device PASID capability and
pass right flags to ops->domain_alloc_user().
Enhance amd_iommu_domain_alloc_user() to allocate domain with
appropriate page table based on flags parameter.
- If flags is empty then allocate domain with default page table type.
This will eventually replace ops->domain_alloc().
For UNMANAGED domain, core will call this interface with flags=0. So
AMD driver will continue to allocate V1 page table.
- If IOMMU_HWPT_ALLOC_PASID flags is passed then allocate domain with v2
page table.
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions