On Wed, 26 Nov 2025 23:17:15 +0000
David Matlack <[email protected]> wrote:

> This series adds support for tests that use multiple devices, and adds
> one new test, vfio_pci_device_init_perf_test, which measures parallel
> device initialization time to demonstrate the improvement from commit
> e908f58b6beb ("vfio/pci: Separate SR-IOV VF dev_set").
> 
> This series also breaks apart the monolithic vfio_util.h and
> vfio_pci_device.c into separate files, to account for all the new code.
> This required quite a bit of code motion so the diffstat looks large.
> The final layout is more granular and provides a better separation of
> the IOMMU code from the device code.
> 
> Final layout:
> 
>   C files:
>     - tools/testing/selftests/vfio/lib/libvfio.c
>     - tools/testing/selftests/vfio/lib/iommu.c
>     - tools/testing/selftests/vfio/lib/iova_allocator.c
>     - tools/testing/selftests/vfio/lib/vfio_pci_device.c
>     - tools/testing/selftests/vfio/lib/vfio_pci_driver.c
> 
>   H files:
>    - tools/testing/selftests/vfio/lib/include/libvfio.h
>    - tools/testing/selftests/vfio/lib/include/libvfio/assert.h
>    - tools/testing/selftests/vfio/lib/include/libvfio/iommu.h
>    - tools/testing/selftests/vfio/lib/include/libvfio/iova_allocator.h
>    - tools/testing/selftests/vfio/lib/include/libvfio/vfio_pci_device.h
>    - tools/testing/selftests/vfio/lib/include/libvfio/vfio_pci_driver.h
> 
> Notably, vfio_util.h is now gone and replaced with libvfio.h.
> 
> This series is based on vfio/next plus Alex Mastro's series to add the
> IOVA allocator [1]. It should apply cleanly to vfio/next once Alex's
> series makes its way to vfio/next via Linus' tree.
> 
> This series can be found on GitHub:
> 
>   https://github.com/dmatlack/linux/tree/vfio/selftests/init_perf_test/v4
> 
> [1] https://lore.kernel.org/kvm/[email protected]/
> 
> Cc: Alex Mastro <[email protected]>
> Cc: Jason Gunthorpe <[email protected]>
> Cc: Josh Hilke <[email protected]>
> Cc: Raghavendra Rao Ananta <[email protected]>
> Cc: Vipin Sharma <[email protected]>
> 
> v4:

Applied to vfio next branch for v6.19.  Thanks,

Alex

Reply via email to