iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl
authorNicolin Chen <nicolinc@nvidia.com>
Thu, 11 Jan 2024 04:10:13 +0000 (20:10 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 11 Jan 2024 17:01:25 +0000 (13:01 -0400)
commitbf26eb83fd3b6f392cf68285c8858db5bfd5e570
tree5028707f24136a95b67bc5c5211973f67347b36a
parente1fa6640d58e3529bd5e392dd92371cde2b31283
iommufd/selftest: Add coverage for IOMMU_HWPT_INVALIDATE ioctl

Add test cases for the IOMMU_HWPT_INVALIDATE ioctl and verify it by using
the new IOMMU_TEST_OP_MD_CHECK_IOTLB.

Link: https://lore.kernel.org/r/20240111041015.47920-7-yi.l.liu@intel.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Co-developed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_utils.h