arch_memory_regions

Function arch_memory_regions 

Source
pub fn arch_memory_regions(size: usize) -> Vec<(GuestAddress, usize)>
Expand description

Returns a Vec of the valid memory addresses. These should be used to configure the GuestMemoryMmap structure for the platform. For x86_64 all addresses are valid from the start of the kernel except an 1GB carve out at the end of 32bit address space and a second 256GB one at the 256GB limit.