Re: [PATCH v2 4/4] vfio: selftests: replace iova=vaddr with allocated iovas
From: Alex Mastro
Date: Tue Nov 11 2025 - 12:21:54 EST
On Tue, Nov 11, 2025 at 10:09:37AM -0700, Alex Williamson wrote:
> 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,
Agree that it's misleading. I'll update the commit message to describe the
things you described earlier.