vfio: selftests: add end of address space DMA map/unmap tests
authorAlex Mastro <amastro@fb.com>
Tue, 28 Oct 2025 16:15:04 +0000 (09:15 -0700)
committerAlex Williamson <alex@shazbot.org>
Tue, 28 Oct 2025 21:54:41 +0000 (15:54 -0600)
commitde8d1f2fd5a510bf2c1c25b84e1a718a0f0af105
tree1101c1947b99afddee9bb176e94fac1ce15fc79e
parent16950b60c19b9137eb8bfeb298621e803e98dcc7
vfio: selftests: add end of address space DMA map/unmap tests

Add tests which validate dma map/unmap at the end of address space. Add
negative test cases for checking that overflowing ioctl args fail with
the expected errno.

Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Alex Mastro <amastro@fb.com>
Link: https://lore.kernel.org/r/20251028-fix-unmap-v6-5-2542b96bcc8e@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
tools/testing/selftests/vfio/vfio_dma_mapping_test.c