On Wed, Oct 30, 2024 at 02:35:34PM -0700, Nicolin Chen wrote: > Similar to IOMMU_TEST_OP_MD_CHECK_IOTLB verifying a mock_domain's iotlb, > IOMMU_TEST_OP_DEV_CHECK_CACHE will be used to verify a mock_dev's cache. > > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > --- > drivers/iommu/iommufd/iommufd_test.h | 5 ++++ > tools/testing/selftests/iommu/iommufd_utils.h | 24 +++++++++++++++++++ > drivers/iommu/iommufd/selftest.c | 22 +++++++++++++++++ > tools/testing/selftests/iommu/iommufd.c | 7 +++++- > 4 files changed, 57 insertions(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason