Skip to main content

alias_memory

Function alias_memory 

Source
pub fn alias_memory(
    id: u64,
    gpa: u64,
    source_gpa: u64,
    len: u64,
    perms_bits: u32,
) -> Result<u64, VmError>
Expand description

Maps a GPA range as an alias of an existing range in a world.

Frames are shared with the source range: no allocation and no extra free.