]> Gentwo Git Trees - linux/.git/commit
vfio: selftests: fix map limit tests to use last available iova
authorAlex Mastro <amastro@fb.com>
Tue, 11 Nov 2025 18:48:25 +0000 (10:48 -0800)
committerAlex Williamson <alex@shazbot.org>
Wed, 12 Nov 2025 15:04:42 +0000 (08:04 -0700)
commita77fa0b9222d2f23a764061a3be18e6bc738672e
tree0d8bb6ee4733da00ca234c1b53bbeea1bcc2bc00
parent7c44656ab3ea6f8429027ed14c23b314502e2541
vfio: selftests: fix map limit tests to use last available iova

Use the newly available vfio_pci_iova_ranges() to determine the last
legal IOVA, and use this as the basis for vfio_dma_map_limit_test tests.

Fixes: de8d1f2fd5a5 ("vfio: selftests: add end of address space DMA map/unmap tests")
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-2-7960244642c5@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/vfio_dma_mapping_test.c