mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
8c6eabae38
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/20240111041015.47920-3-yi.l.liu@intel.com Reviewed-by: Kevin Tian <kevin.tian@intel.com> Co-developed-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> |
||
---|---|---|
.. | ||
device.c | ||
double_span.h | ||
hw_pagetable.c | ||
io_pagetable.c | ||
io_pagetable.h | ||
ioas.c | ||
iommufd_private.h | ||
iommufd_test.h | ||
iova_bitmap.c | ||
Kconfig | ||
main.c | ||
Makefile | ||
pages.c | ||
selftest.c | ||
vfio_compat.c |