- Timestamp:
- Aug 17, 2012 5:09:06 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80122
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r42816 r42857 1348 1348 unsigned idxMsr = 0; 1349 1349 1350 /*1351 * Check if EFER MSR present.1352 */1353 1350 uint32_t u32HostExtFeatures = ASMCpuId_EDX(0x80000001); 1354 1351 if (u32HostExtFeatures & (X86_CPUID_EXT_FEATURE_EDX_NX | X86_CPUID_EXT_FEATURE_EDX_LONG_MODE)) … … 1362 1359 } 1363 1360 1361 #if 0 1364 1362 pMsr->u32IndexMSR = MSR_K6_EFER; 1365 1363 pMsr->u32Reserved = 0; … … 1374 1372 pMsr->u64Value = ASMRdMsr(MSR_K6_EFER); 1375 1373 pMsr++; idxMsr++; 1374 #endif 1376 1375 } 1377 1376 … … 2153 2152 CPUMGetGuestCpuId(pVCpu, 0x80000001, &u32Temp, &u32Temp, &u32Temp, &u32GstExtFeatures); 2154 2153 2155 /*2156 * Check if EFER MSR present.2157 */2158 2154 if (u32GstExtFeatures & (X86_CPUID_EXT_FEATURE_EDX_NX | X86_CPUID_EXT_FEATURE_EDX_LONG_MODE)) 2159 2155 { 2156 #if 0 2160 2157 pMsr->u32IndexMSR = MSR_K6_EFER; 2161 2158 pMsr->u32Reserved = 0; … … 2165 2162 pMsr->u64Value &= ~(MSR_K6_EFER_LMA | MSR_K6_EFER_LME); 2166 2163 pMsr++; idxMsr++; 2164 #endif 2167 2165 2168 2166 if (u32GstExtFeatures & X86_CPUID_EXT_FEATURE_EDX_LONG_MODE) … … 2425 2423 CPUMSetGuestMsr(pVCpu, MSR_K8_TSC_AUX, pMsr->u64Value); 2426 2424 break; 2425 #if 0 2427 2426 case MSR_K6_EFER: 2428 2427 /* EFER can't be changed without causing a VM-exit. */ 2429 2428 /* Assert(pCtx->msrEFER == pMsr->u64Value); */ 2430 2429 break; 2430 #endif 2431 2431 default: 2432 2432 AssertFailed();
Note:
See TracChangeset
for help on using the changeset viewer.