VirtualBox

Changeset 24698 in vbox


Ignore:
Timestamp:
Nov 16, 2009 3:05:57 PM (15 years ago)
Author:
vboxsync
Message:

Invalidate the physical page TLB for ram/rom/mmio region changes.

File:
1 edited

Legend:

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

    r24349 r24698  
    645645    }
    646646    ASMAtomicIncU32(&pVM->pgm.s.idRamRangesGen);
    647 
    648647    pgmUnlock(pVM);
    649648}
     
    680679    }
    681680    ASMAtomicIncU32(&pVM->pgm.s.idRamRangesGen);
    682 
    683681    pgmUnlock(pVM);
    684682}
     
    706704
    707705    pgmR3PhysUnlinkRamRange2(pVM, pRam, pPrev);
    708 
    709706    pgmUnlock(pVM);
    710707}
     
    10341031        pgmR3PhysInitAndLinkRamRange(pVM, pNew, GCPhys, GCPhysLast, NIL_RTRCPTR, NIL_RTR0PTR, pszDesc, pPrev);
    10351032    }
     1033    PGMPhysInvalidatePageMapTLB(pVM);
    10361034    pgmUnlock(pVM);
    10371035
     
    13871385        MMHyperFree(pVM, pRam);
    13881386    }
     1387    PGMPhysInvalidatePageMapTLB(pVM);
    13891388
    13901389    return rc;
     
    14941493    }
    14951494
     1495    PGMPhysInvalidatePageMapTLB(pVM);
    14961496    return rc;
    14971497}
     
    16411641                *ppv = pvPages;
    16421642                RTMemTmpFree(paPages);
     1643                PGMPhysInvalidatePageMapTLB(pVM);
    16431644                return VINF_SUCCESS;
    16441645            }
     
    17521753        }
    17531754    }
     1755    PGMPhysInvalidatePageMapTLB(pVM);
    17541756    pgmUnlock(pVM);
    17551757    return !cFound && iRegion != UINT32_MAX ? VERR_NOT_FOUND : rc;
     
    18901892    }
    18911893
     1894    PGMPhysInvalidatePageMapTLB(pVM);
    18921895    return VINF_SUCCESS;
    18931896}
     
    19701973    pCur->fMapped = false;
    19711974
     1975    PGMPhysInvalidatePageMapTLB(pVM);
    19721976    pgmUnlock(pVM);
    19731977
     
    24062410                    }
    24072411
     2412                    PGMPhysInvalidatePageMapTLB(pVM);
    24082413                    GMMR3AllocatePagesCleanup(pReq);
    24092414                    pgmUnlock(pVM);
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