diff options
| author | Vasant Hegde <[email protected]> | 2024-10-28 09:38:07 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2024-10-29 09:08:22 +0000 |
| commit | ce2cd175469f6cb56e8de9bf87805206c8d19764 (patch) | |
| tree | 22f77c41bda4638ec3b48bd5c88489cd79eb7138 /rust/helpers/mutex.c | |
| parent | iommu/amd: Pass page table type as param to pdom_setup_pgtable() (diff) | |
| download | kernel-ce2cd175469f6cb56e8de9bf87805206c8d19764.tar.gz kernel-ce2cd175469f6cb56e8de9bf87805206c8d19764.zip | |
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 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
