On Fri, 22 Aug 2025 21:24:47 +0000 David Matlack <dmatlack@xxxxxxxxxx> 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@xxxxxxxxxx/ > > This series can also be found on GitHub: > > https://github.com/dmatlack/linux/tree/vfio/selftests/v2 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, Alex