pub fn map_stack(
host: HostPageSize,
size: u64,
) -> Result<MappedRegion, MapError>Expand description
Maps an anonymous RW stack region (guest VA == host VA, kernel-chosen).
size is rounded up to the host page size. The returned region’s
guest_addr is the low address of the mapping; the stack pointer should be
near guest_addr + vmsize.