Skip to main content

Module cpu_config

Module cpu_config 

Source
Expand description

/cpu-config PUT body.

Per 21-api-compat-matrix.md /cpu-config PUT:

  • aarch64 reg_modifiers and vcpu_featuresF (best-effort).
  • x86 cpuid_modifiers and msr_modifiersA (accept-and-warn).
  • kvm_capabilitiesA.

At this layer we keep the shape loose (each subtree is a serde_json::Value) and defer the per-register honor/warn decision to the VMM. Validation here is structural: deny unknown top-level fields and enforce the per-class collection caps.

Structs§

CpuConfig
Validated /cpu-config PUT body.
RawCpuConfig
Raw /cpu-config PUT body off the wire.

Constants§

MAX_REG_MODIFIERS
Maximum number of reg_modifiers rows we accept; arbitrary but bounded.