Function x86_64::bzimage::load_bzimage

source ·
pub fn load_bzimage<F>(
    guest_mem: &GuestMemory,
    kernel_start: GuestAddress,
    kernel_image: &mut F,
) -> Result<(boot_params, AddressRange, GuestAddress, CpuMode), Error>
Expand description

Loads a kernel from a bzImage to a slice

§Arguments

  • guest_mem - The guest memory region the kernel is written to.
  • kernel_start - The offset into guest_mem at which to load the kernel. The header and setup code will be loaded before this address such that the actual kernel payload will be located at kernel_start.
  • kernel_image - Input bzImage.