Module machine_config

Module machine_config 

Source
Expand description

Wrapper for configuring the memory and CPU of the microVM.

Structs§

MachineConfig
Struct used in PUT /machine-config API call.
MachineConfigUpdate
Struct used in PATCH /machine-config API call. Used to update MachineConfig in VmResources. This struct mirrors all the fields in MachineConfig. All fields are optional, but at least one needs to be specified. If a field is Some(value) then we assume an update is requested for that field.

Enums§

HugePageConfig
Describes the possible (huge)page configurations for a microVM’s memory.
MachineConfigError
Errors associated with configuring the microVM.

Constants§

DEFAULT_MEM_SIZE_MIB
The default memory size of the VM, in MiB.
MAX_SUPPORTED_VCPUS
Firecracker aims to support small scale workloads only, so limit the maximum vCPUs supported.