mirror-linux/tools/testing
Alex Mastro 16950b60c1 vfio: selftests: update DMA map/unmap helpers to support more test kinds
Add __vfio_pci_dma_*() helpers which return -errno from the underlying
ioctls.

Add __vfio_pci_dma_unmap_all() to test more unmapping code paths. Add an
out unmapped arg to report the unmapped byte size.

The existing vfio_pci_dma_*() functions, which are intended for
happy-path usage (assert on failure) are now thin wrappers on top of the
double-underscore helpers.

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-4-2542b96bcc8e@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
2025-10-28 15:54:41 -06:00
..
crypto/chacha20-s390
cxl Merge branch 'for-6.18/cxl-delay-dport' into cxl-for-next 2025-09-18 14:34:51 -07:00
fault-injection
ktest
kunit kunit: qemu_configs: Add MIPS configurations 2025-09-15 10:30:07 -06:00
memblock
nvdimm nvdimm: ndtest: Return -ENOMEM if devm_kcalloc() fails in ndtest_probe() 2025-09-25 12:49:46 -05:00
radix-tree Patch series in this pull request: 2025-10-02 18:44:54 -07:00
rbtree
scatterlist mm: remove nth_page() 2025-09-21 14:22:10 -07:00
selftests vfio: selftests: update DMA map/unmap helpers to support more test kinds 2025-10-28 15:54:41 -06:00
shared Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
vma Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
vsock vsock/test: Remove redundant semicolons 2025-08-29 19:10:52 -07:00