]> git.ipfire.org Git - thirdparty/linux.git/commit
vfio: selftests: Split libvfio.h into separate header files
authorDavid Matlack <dmatlack@google.com>
Wed, 26 Nov 2025 23:17:31 +0000 (23:17 +0000)
committerAlex Williamson <alex@shazbot.org>
Fri, 28 Nov 2025 17:58:07 +0000 (10:58 -0700)
commit5fabc49abf7ac630babfb1525e242848d54038c1
tree62f6ac18a826b223a3945301f445007f52ca23c5
parent19cf492c1bddc93b8a0144aac5295b7cf2bd24b8
vfio: selftests: Split libvfio.h into separate header files

Split out the contents of libvfio.h into separate header files, but keep
libvfio.h as the top-level include that all tests can use.

Put all new header files into a libvfio/ subdirectory to avoid future
name conflicts in include paths when libvfio is used by other selftests
like KVM.

No functional 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-17-dmatlack@google.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/lib/include/libvfio.h
tools/testing/selftests/vfio/lib/include/libvfio/assert.h [new file with mode: 0644]
tools/testing/selftests/vfio/lib/include/libvfio/iommu.h [new file with mode: 0644]
tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h [new file with mode: 0644]
tools/testing/selftests/vfio/lib/include/libvfio/vfio_pci_device.h [new file with mode: 0644]
tools/testing/selftests/vfio/lib/include/libvfio/vfio_pci_driver.h [new file with mode: 0644]