#[repr(C)]pub struct VmmCpuidPolicy {}Expand description
Guest CPU description installed by SYS_VMM_SET_CPUID_POLICY (573).
Size: 56 bytes, alignment 4. This is a compact, mask-based form: the vendor string and the brand string are fixed by the engine (they identify s9vm and never a real vendor), so a policy only carries the parts a caller may tune : leaf ranges, version signature, topology counts and feature masks.
The caller must set abi_version to VMM_ABI_VERSION; flags and
reserved are reserved and must be zero (the kernel rejects any other
value). A zero numeric field or feature mask keeps the engine default, so a
caller may tune only what it cares about. A leaf range must fall inside the
leaves the engine implements (an out-of-range value is rejected rather than
silently clamped), and a feature bit the engine refuses : nested
virtualization, for instance : is silently cleared.
The structure is per world: every vCPU of a world observes the same CPU. Replacing a policy applies to the next guest entry.
Fields§
§abi_version: u32ABI version of the structure (VMM_ABI_VERSION).
flags: u32Reserved, must be zero.
max_basic_leaf: u32Highest basic leaf, CPUID.0:EAX (0 = engine default).
max_extended_leaf: u32Highest extended leaf, CPUID.0x8000_0000:EAX (0 = engine default).
family: u32Guest family (0 = engine default).
model: u32Guest model (0 = engine default).
stepping: u32Guest stepping (0 = engine default).
cores: u32Physical cores per package (0 = engine default).
threads: u32Threads per core (0 = engine default).
leaf1_ecx: u32CPUID.1:ECX mask.
leaf1_edx: u32CPUID.1:EDX mask.
extended1_ecx: u32CPUID.0x8000_0001:ECX mask.
extended1_edx: u32CPUID.0x8000_0001:EDX mask.
reserved: u32Reserved, must be zero.