Skip to main content

Module caps

Module caps 

Source
Expand description

s9vm : decoding of hardware virtualization capabilities (Intel VT-x).

This module is pure: it reads no MSR itself, it receives a snapshot (MsrSnapshot) read by the kernel layer (s9vm::mod). It is therefore compilable and testable on the host (L2 tests).

The encoding constants come from the Intel documentation (SDM vol. 3C, “VMX” chapters): MSRs 0x480–0x492, IA32_FEATURE_CONTROL (0x3A). No value specific to a particular hypervisor is used.

Modules§

control_bits
Useful bits of the MSR_PIN_BASED, MSR_PRIMARY_PROC_BASED, MSR_SECONDARY_PROC_BASED and MSR_MISC MSRs.
ept_vpid_cap
Bits of the MSR_EPT_VPID_CAP MSR that are useful to s9vm.

Structs§

AllowedControls
Value of a control MSR: bits that must be 1 (low) and bits that may be 1 (high). See SDM “VMX capability MSRs”.
HwCaps
Set of decoded capabilities, used by the s9vm engine.
MsrSnapshot
Snapshot of the MSRs needed for detection. All values are raw (as read), decoding is done by HwCaps::from_snapshot.

Enums§

CapsError
Detection errors.

Constants§

FEATURE_CONTROL_ENABLE_OUTSIDE_SMX
IA32_FEATURE_CONTROL bit 2: enabling allowed outside SMX.
FEATURE_CONTROL_LOCKED
IA32_FEATURE_CONTROL bit 0: MSR locked by the firmware.
MSR_BASIC
VT-x capability MSRs (range 0x480–0x492).
MSR_CR0_FIXED0
MSR_CR0_FIXED1
MSR_CR4_FIXED0
MSR_CR4_FIXED1
MSR_ENTRY_CONTROLS
MSR_EPT_VPID_CAP
MSR_EXIT_CONTROLS
MSR_FEATURE_CONTROL
MSR IA32_FEATURE_CONTROL: lock and authorization of enabling.
MSR_MISC
MSR_PIN_BASED
MSR_PRIMARY_PROC_BASED
MSR_SECONDARY_PROC_BASED
MSR_TRUE_ENTRY_CONTROLS
MSR_TRUE_EXIT_CONTROLS
MSR_TRUE_PIN_BASED
MSR_TRUE_PRIMARY_PROC_BASED
MSR_VMCS_ENUM