]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Encapsulate IOMMU mode
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:11 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:09 +0000 (12:14 -0600)
commit5df9bd6205114fac04c0f9539fa23f996e22a439
treef7d37cfdadc1f8c86877eb2ba13827ea6746aedf
parent118e073ef6a3446862ada27bdca2b8a53447f428
vfio: selftests: Encapsulate IOMMU mode

Encapsulate the "IOMMU mode" a test should use behind a new struct.
In the future this will be used to support other types of IOMMUs besides
VFIO_TYPE1_IOMMU, and allow users to select the mode on the command
line.

No functional change intended.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-25-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_device_test.c
tools/testing/selftests/vfio/vfio_pci_driver_test.c