diff options
| author | 2025-11-11 10:48:26 -0800 | |
|---|---|---|
| committer | 2025-11-12 08:04:42 -0700 | |
| commit | ce0e3c403e00e9e03e80aca6570bf936a44279e2 (patch) | |
| tree | f52ad6e5dccdb0a36f841b8efc6f8f310a678d9e /tools/arch/powerpc/include/uapi/ssh:/git@git.zx2c4.com | |
| parent | vfio: selftests: fix map limit tests to use last available iova (diff) | |
vfio: selftests: add iova allocator
Add struct iova_allocator, which gives tests a convenient way to generate
legally-accessible IOVAs to map. This allocator traverses the sorted
available IOVA ranges linearly, requires power-of-two size allocations,
and does not support freeing iova allocations. The assumption is that
tests are not IOVA space-bounded, and will not need to recycle IOVAs.
This is based on Alex Williamson's patch series for adding an IOVA
allocator [1].
[1] https://lore.kernel.org/all/20251108212954.26477-1-alex@shazbot.org/
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-3-7960244642c5@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/arch/powerpc/include/uapi/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
