]> Gentwo Git Trees - linux/.git/commit
vfio: selftests: Move IOMMU library code into iommu.c
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:26 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:06 +0000 (10:58 -0700)
commit2aca571089b2cc333ed5ad0ada4902aa6f7c0d3c
tree45c104e3cae9fec121f6495ca2eef267006f5b96
parent9a659d74f2a455cbc595c6cb4dfefc16b09f86ed
vfio: selftests: Move IOMMU library code into iommu.c

Move all the IOMMU related library code into their own file iommu.c.
This provides a better separation between the vfio_pci_device helper
code and the iommu code.

No function change intended.

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-12-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/iommu.c [new file with mode: 0644]
tools/testing/selftests/vfio/lib/libvfio.mk
tools/testing/selftests/vfio/lib/vfio_pci_device.c