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