Skip to main content

Module exit

Module exit 

Source
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§

ExitReason
Decoded exit reason.
VectorEvent
Reads the vector and event type from an interrupt information field (EXIT_INTERRUPT_INFO / IDT_VECTORING_INFO).

Enums§

ExitAction
Internal errno for unhandled exits.
ExitClass
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 vector at 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).