Changeset 8554 in vbox
- Timestamp:
- May 5, 2008 8:08:06 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30468
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r8553 r8554 182 182 == (MSR_IA32_FEATURE_CONTROL_VMXON|MSR_IA32_FEATURE_CONTROL_LOCK)) 183 183 { 184 RTR0MEMOBJ pScatchMemObj; 185 void *pvScatchPage; 186 RTHCPHYS pScatchPagePhys; 187 184 188 HWACCMR0Globals.vmx.fSupported = true; 185 189 HWACCMR0Globals.vmx.msr.vmx_basic_info = ASMRdMsr(MSR_IA32_VMX_BASIC_INFO); … … 196 200 HWACCMR0Globals.vmx.hostCR4 = ASMGetCR4(); 197 201 198 #if HC_ARCH_BITS == 64199 RTR0MEMOBJ pScatchMemObj;200 void *pvScatchPage;201 RTHCPHYS pScatchPagePhys;202 203 202 rc = RTR0MemObjAllocCont(&pScatchMemObj, 1 << PAGE_SHIFT, true /* executable R0 mapping */); 204 203 if (RT_FAILURE(rc)) … … 232 231 /* KVM leaves the CPU in VMX root mode. Not only is this not allowed, it will crash the host when we enter raw mode, because 233 232 * (a) clearing X86_CR4_VMXE in CR4 causes a #GP (we no longer modify this bit) 234 * (b) turning off paging causes a #GP (unavoidable when switching from long to 32 bits mode )233 * (b) turning off paging causes a #GP (unavoidable when switching from long to 32 bits mode or 32 bits to PAE) 235 234 * 236 235 * They should fix their code, but until they do we simply refuse to run. … … 249 248 if (VBOX_FAILURE(HWACCMR0Globals.lLastError)) 250 249 return HWACCMR0Globals.lLastError ; 251 #endif252 250 } 253 251 else
Note:
See TracChangeset
for help on using the changeset viewer.