]> Gentwo Git Trees - linux/.git/commit
vfio: selftests: Introduce struct iommu
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:20 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:06 +0000 (10:58 -0700)
commitc9756b4d2702cc33748eed5916ddc159d349cba6
tree23d71b4d9f0d56f134f02d5a243e3c334133ce36
parentdd56ef239d832d9782f5ed204533824bea4548f7
vfio: selftests: Introduce struct iommu

Introduce struct iommu, which logically represents either a VFIO
container or an iommufd IOAS, depending on which IOMMU mode is used by
the test.

This will be used in a subsequent commit to allow devices to be added to
the same container/iommufd.

Reviewed-by: Alex Mastro <amastro@fb.com>
Tested-by: Alex Mastro <amastro@fb.com>
Reviewed-by: Raghavendra Rao Ananta <rananta@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20251126231733.3302983-6-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/include/vfio_util.h
tools/testing/selftests/vfio/lib/vfio_pci_device.c