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

vfio: selftests: Make iommufd the default iommu_mode

Now that VFIO selftests support iommufd, make it the default mode.
IOMMUFD is the successor to VFIO_TYPE1{,v2}_IOMMU and all new features
are being added there, so it's a slightly better fit as the default
mode.

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

authored by

David Matlack and committed by
Alex Williamson
8afcbe20 61cbfe50

+1 -1
+1 -1
tools/testing/selftests/vfio/lib/vfio_pci_device.c
··· 437 437 }, 438 438 }; 439 439 440 - const char *default_iommu_mode = "vfio_type1_iommu"; 440 + const char *default_iommu_mode = "iommufd"; 441 441 442 442 static const struct vfio_iommu_mode *lookup_iommu_mode(const char *iommu_mode) 443 443 {