iommufd/selftest: Add IOMMU_VEVENTQ_ALLOC test coverage
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 11 Mar 2025 19:44:28 +0000 (12:44 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 18 Mar 2025 17:17:48 +0000 (14:17 -0300)
commit97717a1f283fee4e886bbe96c6a0ca460f71a4ab
treea300461ddf94609bf0f2266175f55b2b22c6351d
parentb3cc0b7599ccc128831fdc0fb71606a246d2a58a
iommufd/selftest: Add IOMMU_VEVENTQ_ALLOC test coverage

Trigger vEVENTs by feeding an idev ID and validating the returned output
virt_ids whether they equal to the value that was set to the vDEVICE.

Link: https://patch.msgid.link/r/e829532ec0a3927d61161b7674b20e731ecd495b.1741719725.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