VirtualBox

Changeset 7495 in vbox


Ignore:
Timestamp:
Mar 19, 2008 9:20:49 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28951
Message:

More logging

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r7494 r7495  
    172172
    173173                AssertMsg(VBOX_SUCCESS(HWACCMR0Globals.lLastError), ("HWACCMR0InitCPU failed for cpu %d with rc=%d\n", idCpu, HWACCMR0Globals.lLastError));
    174 
    175174                if (VBOX_SUCCESS(HWACCMR0Globals.lLastError))
    176175                {
     
    383382    uint64_t val;
    384383
     384#ifdef LOG_ENABLED
     385    SUPR0Printf("HWACCMR0InitCPU cpu %d\n", idCpu);
     386#endif
     387
    385388    if (u32VendorEBX == X86_CPUID_VENDOR_INTEL_EBX)
    386389    {
     
    463466                void *pvR0 = RTR0MemObjAddress(HWACCMR0Globals.aCpuInfo[i].pMemObj);
    464467                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
    465474            }
    466475        }
    467 
    468476        /* First time, so initialize each cpu/core */
    469477        int rc = RTMpOnAll(HWACCMR0EnableCPU, (void *)pVM, aRc);
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r7471 r7495  
    7272    Assert(pVM->hwaccm.s.vmx.fSupported);
    7373
     74#ifdef LOG_ENABLED
     75    SUPR0Printf("VMXR0EnableCpu cpu %d page %x\n", idCpu, (uint32_t)pPageCpuPhys);
     76#endif
    7477    /* Set revision dword at the beginning of the VMXON structure. */
    7578    *(uint32_t *)pvPageCpu = MSR_IA32_VMX_BASIC_INFO_VMCS_ID(pVM->hwaccm.s.vmx.msr.vmx_basic_info);
     
    9093        return VERR_VMX_VMXON_FAILED;
    9194    }
    92 
    9395    return VINF_SUCCESS;
    9496}
     
    112114    /* And clear the X86_CR4_VMXE bit */
    113115    ASMSetCR4(ASMGetCR4() & ~X86_CR4_VMXE);
     116
     117#ifdef LOG_ENABLED
     118    SUPR0Printf("VMXR0DisableCpu cpu %d\n", idCpu);
     119#endif
    114120    return VINF_SUCCESS;
    115121}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette