diff options
author | Lu Baolu <[email protected]> | 2021-05-19 09:50:27 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2021-05-19 08:51:02 +0200 |
commit | 54c80d907400189b09548039be8f3b6e297e8ae3 (patch) | |
tree | e527f468c831fb8b3d11048a0f4933bb3bab5d74 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 1a590a1c8bf46bf80ea12b657ca44c345531ac80 (diff) |
iommu/vt-d: Use user privilege for RID2PASID translation
When first-level page tables are used for IOVA translation, we use user
privilege by setting U/S bit in the page table entry. This is to make it
consistent with the second level translation, where the U/S enforcement
is not available. Clear the SRE (Supervisor Request Enable) field in the
pasid table entry of RID2PASID so that requests requesting the supervisor
privilege are blocked and treated as DMA remapping faults.
Fixes: b802d070a52a1 ("iommu/vt-d: Use iova over first level")
Suggested-by: Jacob Pan <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions