VirtualBox

Changeset 7883 in vbox


Ignore:
Timestamp:
Apr 10, 2008 4:06:32 PM (17 years ago)
Author:
vboxsync
Message:

Drop the pVM->pgm.s.enmGuestMode <= PGMMODE_PROTECTED "optimization" for real and protected mode.

File:
1 edited

Legend:

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

    r7865 r7883  
    906906PGMDECL(int) PGMFlushTLB(PVM pVM, uint32_t cr3, bool fGlobal)
    907907{
     908    STAM_PROFILE_START(&pVM->pgm.s.StatFlushTLB, a);
     909
    908910    /*
    909911     * Always flag the necessary updates; necessary for hardware acceleration
     
    912914    if (fGlobal)
    913915        VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
    914 
    915     /*
    916      * When in real or protected mode there is no TLB flushing, but
    917      * we may still be called because of REM not caring/knowing this.
    918      * REM is simple and we wish to keep it that way.
    919      *
    920      * Note: We need to execute everything in hwaccm mode otherwise GCPhysCR3 can get out of sync.
    921      *       (VT-x and switching between 32 bits paging & PAE hits this case)
    922      */
    923     if (    pVM->pgm.s.enmGuestMode <= PGMMODE_PROTECTED
    924         &&  !HWACCMIsEnabled(pVM))
    925         return VINF_SUCCESS;
    926 
    927916    LogFlow(("PGMFlushTLB: cr3=%#x OldCr3=%#x fGlobal=%d\n", cr3, pVM->pgm.s.GCPhysCR3, fGlobal));
    928     STAM_PROFILE_START(&pVM->pgm.s.StatFlushTLB, a);
    929917
    930918    /*
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