VirtualBox

Changeset 10299 in vbox


Ignore:
Timestamp:
Jul 7, 2008 9:09:06 AM (17 years ago)
Author:
vboxsync
Message:

Force a TLB flush on a mode switch too.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r10073 r10299  
    14651465    if (pVM->pgm.s.enmGuestMode == enmGuestMode)
    14661466        return VINF_SUCCESS;
     1467
     1468    /* Flush the TLB */
     1469    PGM_INVL_GUEST_TLBS();
     1470
    14671471#ifdef IN_RING3
    14681472    return PGMR3ChangeMode(pVM, enmGuestMode);
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r10297 r10299  
    15471547
    15481548            /* Must be set by PGMSyncCR3 */
    1549             Assert(pVM->hwaccm.s.svm.fForceTLBFlush);
     1549            Assert(PGMGetGuestMode(pVM) <= PGMMODE_PROTECTED || pVM->hwaccm.s.svm.fForceTLBFlush);
    15501550        }
    15511551        if (rc == VINF_SUCCESS)
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