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.t...@intel.com> > Signed-off-by: Nicolin Chen <nicol...@nvidia.com> > --- > tools/testing/selftests/iommu/iommufd_utils.h | 32 ++++ > tools/testing/selftests/iommu/iommufd.c | 173 ++++++++++++++++++ > 2 files changed, 205 insertions(+)
Reviewed-by: Jason Gunthorpe <j...@nvidia.com> Jason