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, u64, 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.
  • kernel_image - Input bzImage.