Intel 64 and IA-32 Architectures Software Developers Manual Volume 3B, System Programming Guide Part 2

Table Of Contents
23-16 Vol. 3
VM EXITS
Bit 11 is set to 1 if the VM exit occurred during delivery of a hardware
exception that would have delivered an error code on the stack. If bit 11 is
set to 1, the error code is placed in the IDT-vectoring error code (see below).
Bit 12 is undefined.
Bits 30:13 are always set to 0.
Bit 31 is always set to 1.
For other VM exits, the field is marked invalid (by clearing bit 31) and the
remainder of the field is undefined.
IDT-vectoring error code.
For VM exits that set both bit 31 (valid) and bit 11 (error code valid) in the
IDT-vectoring information field, this field receives the error code that would
have been pushed on the stack by the event that was being delivered through
the IDT at the time of the VM exit. The EXT bit is set in this field when it would
be set normally.
For other VM exits, the value of this field is undefined.
23.2.4 Information for VM Exits Due to Instruction Execution
Section 20.9.4 defined fields containing information for VM exits that occur due to
instruction execution. (The VM-exit instruction length is also used for VM exits that
occur during the delivery of a software interrupt or software exception.) The
following items detail their use.
VM-exit instruction length. This field is used in the following cases:
For fault-like VM exits due to attempts to execute one of the following
instructions that cause VM exits unconditionally (see Section 21.1.2) or
based on the settings of VM-execution controls (see Section 21.1.3): CLTS,
CPUID, GETSEC, HLT, IN, INS, INVD, INVEPT, INVLPG, INVVPID, LGDT, LIDT,
LLDT, LMSW, LTR, MONITOR, MOV CR, MOV DR, MWAIT, OUT, OUTS, PAUSE,
RDMSR, RDPMC, RDTSC, RDTSCP, RSM, SGDT, SIDT, SLDT, STR, VMCALL,
VMCLEAR, VMLAUNCH, VMPTRLD, VMPTRST, VMREAD, VMRESUME,
VMWRITE, VMXOFF, VMXON, WBINVD, WRMSR, and XSETBV.
1
For VM exits due to software exceptions (those generated by executions of
INT3 or INTO).
For VM exits due to faults encountered during delivery of a software
interrupt, privileged software exception, or software exception.
1. This item applies only to fault-like VM exits. It does not apply to trap-like VM exits following exe-
cutions of the MOV to CR8 instruction when the “use TPR shadow” VM-execution control is 1 or
to those following executions of the WRMSR instruction when the “virtualize x2APIC mode” VM-
execution control is 1.