pub trait KernelLoader {
    fn load<F, M: GuestMemory>(
        guest_mem: &M,
        kernel_offset: Option<GuestAddress>,
        kernel_image: &mut F,
        highmem_start_address: Option<GuestAddress>
    ) -> Result<KernelLoaderResult>
    where
        F: Read + Seek
; }
Expand description

Trait that specifies kernel image loading support.

Required Methods

How to load a specific kernel image format into the guest memory.

Arguments
  • guest_mem: GuestMemory to load the kernel in.
  • kernel_offset: Usage varies between implementations.
  • kernel_image: Kernel image to be loaded.
  • highmem_start_address: Address where high memory starts.

Implementors