On Wed, Oct 30, 2024 at 02:35:35PM -0700, Nicolin Chen wrote: > Add a viommu_cache test function to cover vIOMMU invalidations using the > updated IOMMU_HWPT_INVALIDATE ioctl, which now allows passing in a vIOMMU > via its hwpt_id field. > > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > --- > tools/testing/selftests/iommu/iommufd_utils.h | 32 ++++ > tools/testing/selftests/iommu/iommufd.c | 173 ++++++++++++++++++ > 2 files changed, 205 insertions(+) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason