pub struct VmConfig {
pub vcpu_count: u32,
pub memory_size: u64,
pub arch: CpuArch,
pub kernel_path: Option<String>,
pub kernel_cmdline: Option<String>,
pub initrd_path: Option<String>,
pub enable_rosetta: bool,
}Expand description
Virtual machine configuration.
Fields§
§vcpu_count: u32Number of virtual CPUs.
memory_size: u64Memory size in bytes.
arch: CpuArchCPU architecture (defaults to native).
kernel_path: Option<String>Path to the kernel image.
kernel_cmdline: Option<String>Kernel command line arguments.
initrd_path: Option<String>Path to the initial ramdisk.
enable_rosetta: boolEnable Rosetta 2 translation (macOS ARM only).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VmConfig
impl RefUnwindSafe for VmConfig
impl Send for VmConfig
impl Sync for VmConfig
impl Unpin for VmConfig
impl UnsafeUnpin for VmConfig
impl UnwindSafe for VmConfig
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