]> www.infradead.org Git - users/hch/misc.git/commitdiff
vfio: selftests: Make iommufd the default iommu_mode
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:16 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:11 +0000 (12:14 -0600)
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>
tools/testing/selftests/vfio/lib/vfio_pci_device.c

index 5d8944a37982c1ddddd3675b7fe00103a2db3ad1..0921b2451ba5c5490d5395e24578d4064956406e 100644 (file)
@@ -437,7 +437,7 @@ static const struct vfio_iommu_mode iommu_modes[] = {
        },
 };
 
-const char *default_iommu_mode = "vfio_type1_iommu";
+const char *default_iommu_mode = "iommufd";
 
 static const struct vfio_iommu_mode *lookup_iommu_mode(const char *iommu_mode)
 {