VirtualBox

Changeset 10504 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 11, 2008 9:41:54 AM (16 years ago)
Author:
vboxsync
Message:

Don't violate my own rules...

File:
1 edited

Legend:

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

    r10503 r10504  
    872872    pVMCB->ctrl.NestedPaging.n.u1NestedPaging = pVM->hwaccm.s.fNestedPaging;
    873873
     874#ifdef LOG_ENABLED
     875    PHWACCM_CPUINFO pCpuTemp = HWACCMR0GetCurrentCpu();
     876    if (    pVM->hwaccm.s.svm.idLastCpu != pCpuTemp->idCpu
     877        ||  pVM->hwaccm.s.svm.cTLBFlushes != pCpuTemp->cTLBFlushes)
     878    {
     879        if (pVM->hwaccm.s.svm.idLastCpu != pCpuTemp->idCpu)
     880            Log(("Force TLB flush due to rescheduling to a different cpu (%d vs %d)\n", pVM->hwaccm.s.svm.idLastCpu, pCpuTemp->idCpu));
     881        else
     882            Log(("Force TLB flush due to changed TLB flush count (%x vs %x)\n", pVM->hwaccm.s.svm.cTLBFlushes, pCpuTemp->cTLBFlushes));
     883    }
     884    if (pCpuTemp->fFlushTLB)
     885        Log(("SVMR0RunGuestCode: First time cpu %d is used -> flush\n", pCpuTemp->idCpu));
     886#endif
     887
    874888    /*
    875889     * NOTE: DO NOT DO ANYTHING AFTER THIS POINT THAT MIGHT JUMP BACK TO RING 3!
     
    883897        ||  pVM->hwaccm.s.svm.cTLBFlushes != pCpu->cTLBFlushes)
    884898    {
    885 #ifdef LOG_ENABLED
    886         if (pVM->hwaccm.s.svm.idLastCpu != pCpu->idCpu)
    887             Log(("Force TLB flush due to rescheduling to a different cpu (%d vs %d)\n", pVM->hwaccm.s.svm.idLastCpu, pCpu->idCpu));
    888         else
    889             Log(("Force TLB flush due to changed TLB flush count (%x vs %x)\n", pVM->hwaccm.s.svm.cTLBFlushes, pCpu->cTLBFlushes));
    890 #endif
    891899        /* Force a TLB flush on VM entry. */
    892900        pVM->hwaccm.s.svm.fForceTLBFlush = true;
     
    901909            ||  pCpu->fFlushTLB)
    902910        {
    903 #ifdef LOG_ENABLED
    904             if (pCpu->fFlushTLB)
    905                 Log(("SVMR0RunGuestCode: First time cpu %d is used -> flush\n", pCpu->idCpu));
    906 #endif
    907 
    908911            pCpu->fFlushTLB                  = false;
    909912            pCpu->uCurrentASID               = 1;       /* start at 1; host uses 0 */
Note: See TracChangeset for help on using the changeset viewer.

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