iommufd/selftest: Add tests for <= u8 bitmap sizes
authorJoao Martins <joao.m.martins@oracle.com>
Thu, 27 Jun 2024 11:00:57 +0000 (12:00 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 28 Jun 2024 16:12:22 +0000 (13:12 -0300)
commit33335584eb78c0bda21ff8d759c39e035abb48ac
treeec183462dc7b65283a17fdc116b9cc801b417856
parent9560393b830b415b2151b3dd8e065257cccbffa7
iommufd/selftest: Add tests for <= u8 bitmap sizes

Add more tests for bitmaps smaller than or equal to an u8, though skip the
tests if the IOVA buffer size is smaller than the mock page size.

Link: https://lore.kernel.org/r/20240627110105.62325-4-joao.m.martins@oracle.com
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Matt Ochs <mochs@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/selftests/iommu/iommufd.c