Expand description
s9vm : decoding of hardware exits (VM-exits).
Pure module: it turns the raw EXIT_REASON value (and the associated
information fields) into usable structures, with no hardware access.
Host-testable (L2 tests).
The reason numbers are those of the Intel documentation (SDM vol. 3C, appendix C).
Structs§
- Exit
Reason - Decoded exit reason.
- Vector
Event - Reads the vector and event type from an interrupt information field
(
EXIT_INTERRUPT_INFO/IDT_VECTORING_INFO).
Enums§
- Exit
Action - Internal errno for unhandled exits.
- Exit
Class - Functional exit classes; the s9vm dispatcher routes on this classification rather than on the raw number.
Constants§
- APIC_
ACCESS - APIC_
WRITE - CONTROL_
REGISTER - CPUID
- DR_
ACCESS - ENCLS
- ENTRY_
INTERRUPT_ DELIVER_ ERROR - “Deliver an error code” bit of the entry field.
- ENTRY_
INTERRUPT_ TYPE_ EXTERNAL - “External interrupt” type in the entry field (bits 10:8 = 0).
- ENTRY_
INTERRUPT_ TYPE_ NMI - “NMI” type in the entry field (bits 10:8 = 2).
- ENTRY_
INTERRUPT_ VALID - Validity bit of the “VM-entry interruption information” field (
0x4016). - EOI_
INDUCED - EPT_
MISCONFIGURATION - EPT_
VIOLATION - EXCEPTION_
OR_ NMI - EXTERNAL_
INTERRUPT - GDTR_
IDTR_ ACCESS - GETSEC
- HLT
- INIT_
SIGNAL - INVALID_
GUEST_ STATE - INVD
- INVEPT
- INVLPG
- INVPCID
- INVVPID
- IO_
INSTRUCTION - LDTR_
TR_ ACCESS - MCE_
DURING_ ENTRY - MONITOR_
INSTRUCTION - MONITOR_
TRAP_ FLAG - MSR_
LOAD_ FAILURE - MSR_
READ - MSR_
WRITE - MWAIT
- NMI_
VECTOR - Architectural vector of the NMI.
- NMI_
WINDOW - PAUSE
- PENDING_
INTERRUPT - PML_
FULL - PREEMPTION_
TIMER - RDPMC
- RDRAND
- RDSEED
- RDTSC
- RDTSCP
- RSM
- SIPI
- SMI
- TASK_
SWITCH - TPR_
BELOW_ THRESHOLD - TRIPLE_
FAULT - VMCALL
- VMCLEAR
- VMFUNC
- VMLAUNCH
- VMPTRLD
- VMPTRST
- VMREAD
- VMWRITE
- VMXOFF
- VMXON
- WBINVD
- XRSTORS
- XSAVES
- XSETBV
Functions§
- default_
action - Default routing policy of the base layer: what the kernel can handle on its own (without policy or IPC).
- external_
interrupt_ info - Encodes the “VM-entry interruption information” field to inject an
external interrupt of vector
vectorat the next guest entry. - nmi_
info - Encodes the entry field to inject an NMI at the next entry.
- reason_
name - Human-readable name of an exit reason (diagnostics).