VirtualBox

Changeset 8855

Show
Ignore:
Timestamp:
05/15/08 16:09:16 (5 months ago)
Author:
vboxsync
Message:

Simplified tlb flushing.

Files:

Legend:

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

    r8854 r8855  
    769769    /* All done! Let's start VM execution. */ 
    770770    STAM_PROFILE_ADV_START(&pVM->hwaccm.s.StatInGC, x); 
    771     if (    pVM->hwaccm.s.svm.fForceTLBFlush 
    772         ||  pVM->hwaccm.s.svm.fAlwaysFlushTLB) 
    773     { 
    774         pVMCB->ctrl.TLBCtrl.n.u1TLBFlush = 1; 
    775     } 
    776     else 
    777         pVMCB->ctrl.TLBCtrl.n.u1TLBFlush = 0; 
     771 
     772    /* Make sure we flush the TLB when required. */ 
     773    pVMCB->ctrl.TLBCtrl.n.u1TLBFlush = pVM->hwaccm.s.svm.fForceTLBFlush; 
    778774 
    779775    /* In case we execute a goto ResumeExecution later on. */ 
    780776    pVM->hwaccm.s.svm.fResumeVM      = true; 
    781     pVM->hwaccm.s.svm.fForceTLBFlush = false
     777    pVM->hwaccm.s.svm.fForceTLBFlush = pVM->hwaccm.s.svm.fAlwaysFlushTLB
    782778 
    783779    Assert(sizeof(pVM->hwaccm.s.svm.pVMCBPhys) == 8); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy