Function arch::load_image_high

source ·
pub fn load_image_high<F>(
    guest_mem: &GuestMemory,
    image: &mut F,
    min_guest_addr: GuestAddress,
    max_guest_addr: GuestAddress,
    align: u64
) -> Result<(GuestAddress, usize), LoadImageError>where
    F: FileReadWriteAtVolatile + FileGetLen,
Expand description

Load an image from a file into guest memory at the highest possible address.

Arguments

  • guest_mem - The memory to be used by the guest.
  • image - The file containing the image to be loaded.
  • min_guest_addr - The minimum address of the start of the image.
  • max_guest_addr - The address to load the last byte of the image.
  • align - The minimum alignment of the start address of the image in bytes (must be a power of two).

The guest address and size in bytes of the loaded image are returned.