cloud-hypervisor/vmm
Yu Li 55ee8eb482 arch: let arch_memory_regions return all available regions
The previous `arch_memory_regions` function will provide some memory
regions with the specified memory size and fill all the previous
regions before using the next one, but sometimes there may be no need
to fill up the previous one, e.g., the previous one should be aligned
with hugepage size.

This commit make `arch_memory_regions` function not take any
parameters and return the max available regions, the memory manager
can use them on demand.

Fixes: #5463

Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
2023-06-16 14:15:03 -07:00
..
src arch: let arch_memory_regions return all available regions 2023-06-16 14:15:03 -07:00
Cargo.toml build: Bump bitflags from 1.3.2 to 2.3.2 2023-06-16 01:41:45 +00:00