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

Table Of Contents
22-20 Vol. 3
VM ENTRIES
For the other fields, the unusable bit of the access-rights field is consulted:
If the unusable bit is 0, all of the access-rights fields are loaded.
If the unusable bit is 1, the remainder of CS access rights are undefined
after VM entry.
SS, DS, ES, FS, and GS, and LDTR.
The selector fields are loaded.
For the other fields, the unusable bit of the corresponding access-rights field
is consulted:
If the unusable bit is 0, the base-address, limit, and access-rights fields
are loaded.
If the unusable bit is 1, the base address, the segment limit, and the
remainder of the access rights are undefined after VM entry. The only
exceptions are the following:
SS.DPL: always loaded from the SS access-rights field. This will be
the current privilege level (CPL) after the VM entry completes.
The base addresses for FS and GS: always loaded. Note that, on
processors that support Intel 64 architecture, the values loaded for
base addresses for FS and GS are also manifest in the FS.base and
GS.base MSRs.
The base address for LDTR on processors that support Intel 64 archi-
tecture: set to an undefined but canonical value.
Bits 63:32 of the base addresses for SS, DS, and ES on processors
that support Intel 64 architecture: cleared to 0.
GDTR and IDTR are loaded using the base and limit fields.
22.3.2.3 Loading Guest RIP, RSP, and RFLAGS
RSP, RIP, and RFLAGS are loaded from the RSP field, the RIP field, and the RFLAGS
field, respectively. The following items regard the upper 32 bits of these fields on
VM entries that are not to 64-bit mode:
Bits 63:32 of RSP are undefined outside 64-bit mode. Thus, a logical processor
may ignore the contents of bits 63:32 of the RSP field on VM entries that are not
to 64-bit mode.
As noted in Section 22.3.1.4, bits 63:32 of the RIP and RFLAGS fields must be 0
on VM entries that are not to 64-bit mode.
22.3.2.4 Loading Page-Directory-Pointer-Table Entries
As noted in Section 22.3.1.6, the logical processor uses PAE paging if bit 5 in CR4
(CR4.PAE) is 1 and IA32_EFER.LMA is 0. A VM entry to a guest that uses PAE paging
loads the PDPTEs into internal, non-architectural registers based on the setting of the
“enable EPT” VM-execution control: