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@fb.com 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.