iommufd/selftest: Add a selftest for IOMMU_HWPT_ALLOC
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 17 Jul 2023 18:12:15 +0000 (15:12 -0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 26 Jul 2023 13:20:41 +0000 (10:20 -0300)
commit6583c865dec5493beb4c72fd724eb9d43d8d7ebb
treebd59bd6893b066879bd10b58d8ced989a8fd97a0
parent7a467e02b339a50ed2762edd72e763925ac2b0a3
iommufd/selftest: Add a selftest for IOMMU_HWPT_ALLOC

Test the basic flow.

Link: https://lore.kernel.org/r/19-v8-6659224517ea+532-iommufd_alloc_jgg@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/io_pagetable.c
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_fail_nth.c
tools/testing/selftests/iommu/iommufd_utils.h