VirtualBox

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


Ignore:
Timestamp:
May 18, 2009 2:10:49 PM (16 years ago)
Author:
vboxsync
Message:

Protect InvalidatePage with the pgm lock.

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

Legend:

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

    r19682 r19790  
    728728     */
    729729    STAM_PROFILE_START(&pVCpu->pgm.s.CTX_MID_Z(Stat,InvalidatePage), a);
     730    pgmLock(pVM);
    730731    rc = PGM_BTH_PFN(InvalidatePage, pVCpu)(pVCpu, GCPtrPage);
     732    pgmUnlock(pVM);
    731733    STAM_PROFILE_STOP(&pVCpu->pgm.s.CTX_MID_Z(Stat,InvalidatePage), a);
    732734
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r19789 r19790  
    932932    PVM pVM = pVCpu->CTX_SUFF(pVM);
    933933    PPGMPOOL pPool = pVM->pgm.s.CTX_SUFF(pPool);
     934
     935    Assert(PGMIsLockOwner(pVM));
    934936
    935937    LogFlow(("InvalidatePage %RGv\n", GCPtrPage));
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