pub struct VMKernelConfig {Show 13 fields
pub entry_point: usize,
pub kernel_path: String,
pub kernel_load_addr: usize,
pub bios_path: Option<String>,
pub bios_load_addr: Option<usize>,
pub dtb_path: Option<String>,
pub dtb_load_addr: Option<usize>,
pub ramdisk_path: Option<String>,
pub ramdisk_load_addr: Option<usize>,
pub image_location: Option<String>,
pub cmdline: Option<String>,
pub disk_path: Option<String>,
pub memory_regions: Vec<VmMemConfig>,
}
Expand description
The configuration structure for the guest VM kernel.
Fields§
§entry_point: usize
The entry point of the kernel image.
kernel_path: String
The file path of the kernel image.
kernel_load_addr: usize
The load address of the kernel image.
bios_path: Option<String>
The file path of the BIOS image, None
if not used.
bios_load_addr: Option<usize>
The load address of the BIOS image, None
if not used.
dtb_path: Option<String>
The file path of the device tree blob (DTB), None
if not used.
dtb_load_addr: Option<usize>
The load address of the device tree blob (DTB), None
if not used.
ramdisk_path: Option<String>
The file path of the ramdisk image, None
if not used.
ramdisk_load_addr: Option<usize>
The load address of the ramdisk image, None
if not used.
image_location: Option<String>
The location of the image, default is ‘fs’.
cmdline: Option<String>
The command line of the kernel.
disk_path: Option<String>
The path of the disk image.
memory_regions: Vec<VmMemConfig>
Memory Information
Trait Implementations§
Source§impl Clone for VMKernelConfig
impl Clone for VMKernelConfig
Source§fn clone(&self) -> VMKernelConfig
fn clone(&self) -> VMKernelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VMKernelConfig
impl Debug for VMKernelConfig
Source§impl Default for VMKernelConfig
impl Default for VMKernelConfig
Source§fn default() -> VMKernelConfig
fn default() -> VMKernelConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VMKernelConfig
impl<'de> Deserialize<'de> for VMKernelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VMKernelConfig
impl RefUnwindSafe for VMKernelConfig
impl Send for VMKernelConfig
impl Sync for VMKernelConfig
impl Unpin for VMKernelConfig
impl UnwindSafe for VMKernelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more