diff options
| author | 2025-11-11 10:48:27 -0800 | |
|---|---|---|
| committer | 2025-11-12 08:04:42 -0700 | |
| commit | d323ad739666761646048fca587734f4ae64f2c8 (patch) | |
| tree | e073bfa801d3caa5aaf0d2d27ad191087c9a5ebc /tools/arch/powerpc/include/uapi/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com | |
| parent | vfio: selftests: add iova allocator (diff) | |
vfio: selftests: replace iova=vaddr with allocated iovas
vfio_dma_mapping_test and vfio_pci_driver_test currently use iova=vaddr
as part of DMA mapping operations. However, not all IOMMUs support the
same virtual address width as the processor. For instance, older Intel
consumer platforms only support 39-bits of IOMMU address space. On such
platforms, using the virtual address as the IOVA fails.
Make the tests more robust by using iova_allocator to vend IOVAs, which
queries legally accessible IOVAs from the underlying IOMMUFD or VFIO
container.
Reviewed-by: David Matlack <dmatlack@google.com>
Tested-by: David Matlack <dmatlack@google.com>
Signed-off-by: Alex Mastro <amastro@fb.com>
Link: https://lore.kernel.org/r/20251111-iova-ranges-v3-4-7960244642c5@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/arch/powerpc/include/uapi/ssh:/git@git.zx2c4.com/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
