On Wed, Aug 27, 2025 at 11:55 AM Alex Williamson alex.williamson@redhat.com wrote:
On Fri, 22 Aug 2025 21:24:47 +0000 David Matlack dmatlack@google.com wrote:
This series introduces VFIO selftests, located in tools/testing/selftests/vfio/.
VFIO selftests aim to enable kernel developers to write and run tests that take the form of userspace programs that interact with VFIO and IOMMUFD uAPIs. VFIO selftests can be used to write functional tests for new features, regression tests for bugs, and performance tests for optimizations.
These tests are designed to interact with real PCI devices, i.e. they do not rely on mocking out or faking any behavior in the kernel. This allows the tests to exercise not only VFIO but also IOMMUFD, the IOMMU driver, interrupt remapping, IRQ handling, etc.
For more background on the motivation and design of this series, please see the RFC:
https://lore.kernel.org/kvm/20250523233018.1702151-1-dmatlack@google.com/
This series can also be found on GitHub:
Applied to vfio next branch for v6.18. I've got a system with compatible ioatdma hardware, so I'll start incorporating this into my regular testing and hopefully convert some unit tests as well. Thanks,
That sounds great. Thanks for your help with getting this merged. And big thanks to Jason as well.