Skip to main content

Module hotplug_memory

Module hotplug_memory 

Source
Expand description

/hotplug/memory PUT and PATCH bodies — virtio-mem hotplug.

Per 21-api-compat-matrix.md /hotplug/memory the endpoint accepts PUT (full config), GET (read-only mirror), and PATCH (size update). Field names mirror upstream Firecracker’s MemoryHotplugConfig and MemoryHotplugSizeUpdate.

Structs§

HotplugMemoryConfig
Validated /hotplug/memory PUT body.
HotplugMemoryUpdate
Validated /hotplug/memory PATCH body.
RawHotplugMemoryConfig
Raw /hotplug/memory PUT body.
RawHotplugMemoryUpdate
Raw /hotplug/memory PATCH body.

Constants§

DEFAULT_BLOCK_SIZE_MIB
Default block size in MiB. Block is the smallest unit the guest can hot(un)plug.
DEFAULT_SLOT_SIZE_MIB
Default slot size in MiB. Slot is the smallest unit the host can (de)attach.
MAX_TOTAL_SIZE_MIB
Upper bound on the configured total_size_mib. The host-RAM cap is enforced at the controller (Phase 3 territory once the VMM event loop knows the running set).