Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfio: selftests: Add vfio_type1v2_mode

Add a new IOMMU mode for using VFIO_TYPE1v2_IOMMU.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-27-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

David Matlack and committed by
Alex Williamson
0969c685 892aff14

+7 -1
+2 -1
tools/testing/selftests/vfio/lib/include/vfio_util.h
··· 59 59 * which should then use FIXTURE_VARIANT_ADD() to create the variant. 60 60 */ 61 61 #define FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(...) \ 62 - FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1_iommu, ##__VA_ARGS__) 62 + FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1_iommu, ##__VA_ARGS__); \ 63 + FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1v2_iommu, ##__VA_ARGS__) 63 64 64 65 struct vfio_pci_bar { 65 66 struct vfio_region_info info;
+5
tools/testing/selftests/vfio/lib/vfio_pci_device.c
··· 371 371 .container_path = "/dev/vfio/vfio", 372 372 .iommu_type = VFIO_TYPE1_IOMMU, 373 373 }, 374 + { 375 + .name = "vfio_type1v2_iommu", 376 + .container_path = "/dev/vfio/vfio", 377 + .iommu_type = VFIO_TYPE1v2_IOMMU, 378 + }, 374 379 }; 375 380 376 381 const char *default_iommu_mode = "vfio_type1_iommu";