]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Replicate tests across all iommu_modes
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:12 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:10 +0000 (12:14 -0600)
commit892aff147a545fa7c94d98613093afa84faa25b1
treec190eab36ae17dd9da65bffa09960dfa24d517e6
parent5df9bd6205114fac04c0f9539fa23f996e22a439
vfio: selftests: Replicate tests across all iommu_modes

Automatically replicate vfio_dma_mapping_test and vfio_pci_driver_test
across all supported IOMMU modes using fixture variants. Both of these
tests exercise DMA mapping to some degree so having automatic coverage
across all IOMMU modes will help catch bugs.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-26-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
tools/testing/selftests/vfio/lib/include/vfio_util.h
tools/testing/selftests/vfio/lib/vfio_pci_device.c
tools/testing/selftests/vfio/vfio_dma_mapping_test.c
tools/testing/selftests/vfio/vfio_pci_driver_test.c