Changeset 48601 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 20, 2013 2:37:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r48597 r48601 1272 1272 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LAHF); 1273 1273 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX); 1274 #if 0 /** @todo r=bird: This ain't making any sense whatsoever. */1275 #if RT_ARCH_X861276 if ( !CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE)1277 || !(pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE))1278 LogRel(("NX is only supported for 64-bit guests!\n"));1279 #endif1280 #endif1281 1274 } 1282 1275 /* Turn on NXE if PAE has been enabled *and* the host has turned on NXE 1283 1276 (we reuse the host EFER in the switcher). */ 1284 1277 /** @todo this needs to be fixed properly!! */ 1285 else if ( CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE) 1286 && (pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE)) 1287 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX); 1288 else 1289 LogRel(("HM: NX not supported by the host.\n")); 1278 else if (CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE)) 1279 { 1280 if (pVM->hm.s.vmx.u64HostEfer & MSR_K6_EFER_NXE) 1281 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX); 1282 else 1283 LogRel(("HM: NX not enabled on the host, unavailable to PAE guest.\n")); 1284 } 1290 1285 1291 1286 /*
Note:
See TracChangeset
for help on using the changeset viewer.