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_BASEDandMSR_MISCMSRs. - ept_
vpid_ cap - Bits of the
MSR_EPT_VPID_CAPMSR that are useful to s9vm.
Structs§
- Allowed
Controls - 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
s9vmengine. - MsrSnapshot
- Snapshot of the MSRs needed for detection. All values are
raw (as read), decoding is done by
HwCaps::from_snapshot.
Enums§
- Caps
Error - Detection errors.
Constants§
- FEATURE_
CONTROL_ ENABLE_ OUTSIDE_ SMX IA32_FEATURE_CONTROLbit 2: enabling allowed outside SMX.- FEATURE_
CONTROL_ LOCKED IA32_FEATURE_CONTROLbit 0: MSR locked by the firmware.- MSR_
BASIC - VT-x capability MSRs (range
0x480–0x492). - MSR_
CR0_ FIXE D0 - MSR_
CR0_ FIXE D1 - MSR_
CR4_ FIXE D0 - MSR_
CR4_ FIXE D1 - 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