[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251128124444.2d6abe55.alex@shazbot.org>
Date: Fri, 28 Nov 2025 12:44:44 -0700
From: Alex Williamson <alex@...zbot.org>
To: David Matlack <dmatlack@...gle.com>
Cc: Alex Mastro <amastro@...com>, Jason Gunthorpe <jgg@...dia.com>, Josh
Hilke <jrhilke@...gle.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org, Raghavendra
Rao Ananta <rananta@...gle.com>, Vipin Sharma <vipinsh@...gle.com>
Subject: Re: [PATCH v4 00/18] vfio: selftests: Support for multi-device
tests
On Wed, 26 Nov 2025 23:17:15 +0000
David Matlack <dmatlack@...gle.com> 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/20251111-iova-ranges-v3-0-7960244642c5@fb.com/
>
> Cc: Alex Mastro <amastro@...com>
> Cc: Jason Gunthorpe <jgg@...dia.com>
> Cc: Josh Hilke <jrhilke@...gle.com>
> Cc: Raghavendra Rao Ananta <rananta@...gle.com>
> Cc: Vipin Sharma <vipinsh@...gle.com>
>
> v4:
Applied to vfio next branch for v6.19. Thanks,
Alex
Powered by blists - more mailing lists