diff options
| author | Alex Mastro <amastro@fb.com> | 2025-11-11 10:48:27 -0800 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2025-11-12 08:04:42 -0700 |
| commit | d323ad739666761646048fca587734f4ae64f2c8 (patch) | |
| tree | e073bfa801d3caa5aaf0d2d27ad191087c9a5ebc /net/unix/af_unix.c | |
| parent | ce0e3c403e00e9e03e80aca6570bf936a44279e2 (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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
