Changeset 46942 in vbox for trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
- Timestamp:
- Jul 3, 2013 2:53:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r46925 r46942 2143 2143 RTSEL uSelGS = 0; 2144 2144 RTSEL uSelTR = 0; 2145 RTSEL uSelLDTR = 0;2146 2145 2147 2146 /* … … 2154 2153 uSelFS = ASMGetFS(); 2155 2154 uSelGS = ASMGetGS(); 2156 uSelLDTR = ASMGetLDTR();2157 2155 #endif 2158 2156 … … 2212 2210 pVCpu->hm.s.vmx.RestoreHost.uHostSelGS = uSelGS; 2213 2211 uSelGS = 0; 2214 }2215 2216 /*2217 * VT-x unconditionally writes LDTR to 0 on all VM-exits. If the host has something different, we shall restore it.2218 * See Intel spec. 27.5.2 "Loading Host Segment and Descriptor-Table Registers".2219 */2220 if (uSelLDTR)2221 {2222 pVCpu->hm.s.vmx.fRestoreHostFlags |= VMX_RESTORE_HOST_SEL_LDTR;2223 pVCpu->hm.s.vmx.RestoreHost.uHostSelLDTR = uSelLDTR;2224 2212 } 2225 2213 #endif
Note:
See TracChangeset
for help on using the changeset viewer.