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

Table Of Contents
Vol. 3 20-25
VIRTUAL-MACHINE CONTROL STRUCTURES
20.9 VM-EXIT INFORMATION FIELDS
The VMCS contains a section of read-only fields that contain information about the
most recent VM exit. Attempts to write to these fields with VMWRITE fail (see
“VMWRITE—Write Field to Virtual-Machine Control Structure” in Chapter 6 of the
Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 2B).
20.9.1 Basic VM-Exit Information
The following VM-exit information fields provide basic information about a VM exit:
Exit reason (32 bits). This field encodes the reason for the VM exit and has the
structure given in Table 20-13.
Bits 15:0 provide basic information about the cause of the VM exit (if bit 31 is
clear) or of the VM-entry failure (if bit 31 is set). Appendix I enumerates the
basic exit reasons.
Bit 28 is set only by an SMM VM exit (see Section 25.15.2) that took priority
over an MTF VM exit (see Section 21.7.2) that would have occurred had the
SMM VM exit not occurred. See Section 25.15.2.3.
Bit 29 is set if and only if the processor was in VMX root operation at the time
the VM exit occurred. This can happen only for SMM VM exits. See Section
25.15.2.
Because some VM-entry failures load processor state from the host-state
area (see Section 22.7), software must be able to distinguish such cases from
true VM exits. Bit 31 is used for that purpose.
Exit qualification (64 bits; 32 bits on processors that do not support Intel 64
architecture). This field contains additional information about the cause of
VM exits due to the following: debug exceptions; page-fault exceptions; start-up
IPIs (SIPIs); task switches; INVEPT; INVLPG;INVVPID; LGDT; LIDT; LLDT; LTR;
Table 20-13. Format of Exit Reason
Bit
Position(s)
Contents
15:0 Basic exit reason
27:16 Reserved (cleared to 0)
28 Pending MTF VM exit
29 VM exit from VMX root operation
30 Reserved (cleared to 0)
31 VM-entry failure (0 = true VM exit; 1 = VM-entry failure)