Re: [PATCH v2 4/4] vfio: selftests: replace iova=vaddr with allocated iovas
From: Alex Williamson
Date: Tue Nov 11 2025 - 12:09:41 EST
On Tue, 11 Nov 2025 06:52:05 -0800
Alex Mastro <amastro@xxxxxx> wrote:
> vfio_dma_mapping_test and vfio_pci_driver_test currently use iova=vaddr
> as part of DMA mapping operations. The assumption that these IOVAs
> are legal has held up on all the hardware we've tested so far, but is
> not guaranteed. Make the tests more robust by using iova_allocator to
> vend IOVAs, which queries legally accessible IOVAs from the underlying
> IOMMUFD or VFIO container.
I've reported hardware that it doesn't work on, QEMU emulates such
hardware. The commit message suggests this is more of a theoretical
problem. Thanks,
Alex