VirtualBox

Changeset 24695 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 16, 2009 2:44:58 PM (15 years ago)
Author:
vboxsync
Message:

Unify page TLB clearing in PGMPhysInvalidatePageMapTLB

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r24542 r24695  
    12891289
    12901290    PGMR3PhysChunkInvalidateTLB(pVM);
    1291     PGMPhysInvalidatePageR3MapTLB(pVM);
    1292     PGMPhysInvalidatePageR0MapTLB(pVM);
    1293     PGMPhysInvalidatePageGCMapTLB(pVM);
     1291    PGMPhysInvalidatePageMapTLB(pVM);
    12941292
    12951293    /*
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r24647 r24695  
    192192
    193193/**
    194  * Invalidates the GC page mapping TLB.
     194 * Invalidates the all page mapping TLBs.
    195195 *
    196196 * @param   pVM     The VM handle.
    197197 */
    198 VMMDECL(void) PGMPhysInvalidatePageGCMapTLB(PVM pVM)
    199 {
    200     /* later */
    201     NOREF(pVM);
    202 }
    203 
    204 #ifndef IN_RC
    205 /**
    206  * Invalidates the ring-0 page mapping TLB.
    207  *
    208  * @param   pVM     The VM handle.
    209  */
    210 VMMDECL(void) PGMPhysInvalidatePageR0MapTLB(PVM pVM)
    211 {
    212     PGMPhysInvalidatePageR3MapTLB(pVM);
    213 }
    214 
    215 
    216 /**
    217  * Invalidates the ring-3 page mapping TLB.
    218  *
    219  * @param   pVM     The VM handle.
    220  */
    221 VMMDECL(void) PGMPhysInvalidatePageR3MapTLB(PVM pVM)
     198VMMDECL(void) PGMPhysInvalidatePageMapTLB(PVM pVM)
    222199{
    223200    pgmLock(pVM);
     
    229206        pVM->pgm.s.PhysTlbHC.aEntries[i].pv = 0;
    230207    }
     208    /* @todo clear the RC TLB whenever we add it. */
    231209    pgmUnlock(pVM);
    232210}
    233 #endif /* ! IN_RC */
    234211
    235212/**
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