pub struct PetriVmConfig {
pub name: String,
pub arch: MachineArch,
pub host_log_levels: Option<OpenvmmLogConfig>,
pub firmware: Firmware,
pub memory: MemoryConfig,
pub proc_topology: ProcessorTopology,
pub vmgs: PetriVmgsResource,
pub tpm: Option<TpmConfig>,
pub vmbus_storage_controllers: HashMap<Guid, VmbusStorageController>,
}Expand description
Petri VM configuration
Fields§
§name: StringThe name of the VM
arch: MachineArchThe architecture of the VM
host_log_levels: Option<OpenvmmLogConfig>Log levels for the host VMM process.
firmware: FirmwareFirmware and/or OS to load into the VM and associated settings
memory: MemoryConfigThe amount of memory, in bytes, to assign to the VM
proc_topology: ProcessorTopologyThe processor tology for the VM
vmgs: PetriVmgsResourceVM guest state
tpm: Option<TpmConfig>TPM configuration
vmbus_storage_controllers: HashMap<Guid, VmbusStorageController>Storage controllers and associated disks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PetriVmConfig
impl RefUnwindSafe for PetriVmConfig
impl Send for PetriVmConfig
impl Sync for PetriVmConfig
impl Unpin for PetriVmConfig
impl UnwindSafe for PetriVmConfig
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