]> Gentwo Git Trees - linux/.git/commit
iommufd/selftest: Add IOMMU_VIOMMU_ALLOC test coverage
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 5 Nov 2024 20:04:28 +0000 (12:04 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Nov 2024 15:46:18 +0000 (11:46 -0400)
commit7156cd9ef24583c88bcc2f6d213f469aef38bfd9
tree5229322c791b62b47b5aca03cb30d0060595ffd0
parentdb70827a8827a1ac8d1063732d8c1182820e875c
iommufd/selftest: Add IOMMU_VIOMMU_ALLOC test coverage

Add a new iommufd_viommu FIXTURE and setup it up with a vIOMMU object.

Any new vIOMMU feature will be added as a TEST_F under that.

Link: https://patch.msgid.link/r/abe267c9d004b29cb1712ceba2f378209d4b7e01.1730836219.git.nicolinc@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_fail_nth.c
tools/testing/selftests/iommu/iommufd_utils.h