pub enum Image {
None,
Uefi {
config_type: UefiConfigType,
},
Openhcl {
command_line: String,
static_command_line: bool,
memory_page_base: Option<u64>,
memory_page_count: u64,
uefi: bool,
linux: Option<LinuxImage>,
},
Linux(LinuxImage),
}
Expand description
Configuration on what to load.
Variants§
None
Load nothing.
Uefi
Load UEFI.
Fields
§
config_type: UefiConfigType
Openhcl
Load the OpenHCL paravisor.
Fields
§
static_command_line: bool
If false, the host may provide additional kernel command line parameters at runtime.
§
memory_page_base: Option<u64>
The base page number for paravisor memory. None means relocation is used.
§
linux: Option<LinuxImage>
Include the Linux kernel for loading into the guest.
Linux(LinuxImage)
Load the Linux kernel. TODO: Currently, this only works with underhill.
Implementations§
Source§impl Image
impl Image
Sourcepub fn required_resources(&self) -> Vec<ResourceType>
pub fn required_resources(&self) -> Vec<ResourceType>
Get the required resources for this image config.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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