]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Centralize IOMMU mode name definitions
authorAlex Mastro <amastro@fb.com>
Wed, 14 Jan 2026 18:57:16 +0000 (10:57 -0800)
committerAlex Williamson <alex@shazbot.org>
Mon, 19 Jan 2026 17:06:29 +0000 (10:06 -0700)
commit03b7c2d763c907f508edf8c317c0e920ce072a33
tree9dcc4cbebac502f47c433f33571e5dfca29e3f56
parentffc987b3bca22ff62f140a8d4960e1b8685972ed
vfio: selftests: Centralize IOMMU mode name definitions

Replace scattered string literals with MODE_* macros in iommu.h. This
provides a single source of truth for IOMMU mode name strings.

Signed-off-by: Alex Mastro <amastro@fb.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Tested-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20260114-map-mmio-test-v3-1-44e036d95e64@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/include/libvfio/iommu.h
tools/testing/selftests/vfio/lib/iommu.c
tools/testing/selftests/vfio/vfio_dma_mapping_test.c