VirtualBox

Changeset 8855 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 15, 2008 2:09:16 PM (17 years ago)
Author:
vboxsync
Message:

Simplified tlb flushing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
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