iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op
authorNicolin Chen <nicolinc@nvidia.com>
Thu, 11 Jan 2024 04:10:12 +0000 (20:10 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 11 Jan 2024 17:01:25 +0000 (13:01 -0400)
commite1fa6640d58e3529bd5e392dd92371cde2b31283
tree360c0980b20fb92645e0b0c9ddd588598200be3a
parentac8691203c07bb1897681d5c66374174336392fe
iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test op

Allow to test whether IOTLB has been invalidated or not.

Link: https://lore.kernel.org/r/20240111041015.47920-6-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.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>
drivers/iommu/iommufd/iommufd_test.h
drivers/iommu/iommufd/selftest.c
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_utils.h