Changeset 7495 in vbox
- Timestamp:
- Mar 19, 2008 9:20:49 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28951
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r7494 r7495 172 172 173 173 AssertMsg(VBOX_SUCCESS(HWACCMR0Globals.lLastError), ("HWACCMR0InitCPU failed for cpu %d with rc=%d\n", idCpu, HWACCMR0Globals.lLastError)); 174 175 174 if (VBOX_SUCCESS(HWACCMR0Globals.lLastError)) 176 175 { … … 383 382 uint64_t val; 384 383 384 #ifdef LOG_ENABLED 385 SUPR0Printf("HWACCMR0InitCPU cpu %d\n", idCpu); 386 #endif 387 385 388 if (u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX) 386 389 { … … 463 466 void *pvR0 = RTR0MemObjAddress(HWACCMR0Globals.aCpuInfo[i].pMemObj); 464 467 memset(pvR0, 0, PAGE_SIZE); 468 469 #ifdef LOG_ENABLED 470 RTHCPHYS pPageCpuPhys = RTR0MemObjGetPagePhysAddr(HWACCMR0Globals.aCpuInfo[i].pMemObj, 0); 471 472 SUPR0Printf("address %x phys %x\n", pvR0, (uint32_t)pPageCpuPhys); 473 #endif 465 474 } 466 475 } 467 468 476 /* First time, so initialize each cpu/core */ 469 477 int rc = RTMpOnAll(HWACCMR0EnableCPU, (void *)pVM, aRc); -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r7471 r7495 72 72 Assert(pVM->hwaccm.s.vmx.fSupported); 73 73 74 #ifdef LOG_ENABLED 75 SUPR0Printf("VMXR0EnableCpu cpu %d page %x\n", idCpu, (uint32_t)pPageCpuPhys); 76 #endif 74 77 /* Set revision dword at the beginning of the VMXON structure. */ 75 78 *(uint32_t *)pvPageCpu = MSR_IA32_VMX_BASIC_INFO_VMCS_ID(pVM->hwaccm.s.vmx.msr.vmx_basic_info); … … 90 93 return VERR_VMX_VMXON_FAILED; 91 94 } 92 93 95 return VINF_SUCCESS; 94 96 } … … 112 114 /* And clear the X86_CR4_VMXE bit */ 113 115 ASMSetCR4(ASMGetCR4() & ~X86_CR4_VMXE); 116 117 #ifdef LOG_ENABLED 118 SUPR0Printf("VMXR0DisableCpu cpu %d\n", idCpu); 119 #endif 114 120 return VINF_SUCCESS; 115 121 }
Note:
See TracChangeset
for help on using the changeset viewer.