pub fn load_bzimage<F>(
guest_mem: &GuestMemory,
kernel_start: GuestAddress,
kernel_image: &mut F,
) -> Result<(boot_params, AddressRange, GuestAddress, CpuMode), Error>where
F: FileReadWriteAtVolatile + FileGetLen,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 intoguest_memat 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 atkernel_start.kernel_image- Input bzImage.