iommufd/selftest: Test out_capabilities in IOMMU_GET_HW_INFO
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 24 Oct 2023 13:51:08 +0000 (14:51 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 24 Oct 2023 14:58:44 +0000 (11:58 -0300)
commitae36fe70cea4d7c177452ab41e6734fa3cbd4ad8
tree631a5bc80986b4f5efbd6e2b79eeb21169de53d8
parenta9af47e382a4d517685cb13c780272e7f300ebc5
iommufd/selftest: Test out_capabilities in IOMMU_GET_HW_INFO

Enumerate the capabilities from the mock device and test whether it
advertises as expected. Include it as part of the iommufd_dirty_tracking
fixture.

Link: https://lore.kernel.org/r/20231024135109.73787-18-joao.m.martins@oracle.com
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_fail_nth.c
tools/testing/selftests/iommu/iommufd_utils.h