diff options
author | Yi Liu <[email protected]> | 2024-01-10 20:10:09 -0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-01-11 12:55:04 -0400 |
commit | 8c6eabae3807e048b9f17733af5e20500fbf858c (patch) | |
tree | 80727e96b2fa2344e894215a4861703bac79ed32 /scripts/gdb/linux/utils.py | |
parent | f35b88b66fbb5c90298ce3aa483b8a2cf1f39ad0 (diff) |
iommufd: Add IOMMU_HWPT_INVALIDATE
In nested translation, the stage-1 page table is user-managed but cached
by the IOMMU hardware, so an update on present page table entries in the
stage-1 page table should be followed with a cache invalidation.
Add an IOMMU_HWPT_INVALIDATE ioctl to support such a cache invalidation.
It takes hwpt_id to specify the iommu_domain, and a multi-entry array to
support multiple invalidation data in one ioctl.
enum iommu_hwpt_invalidate_data_type is defined to tag the data type of
the entries in the multi-entry array.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kevin Tian <[email protected]>
Co-developed-by: Nicolin Chen <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions