VirtualBox

Changeset 19175 in vbox for trunk


Ignore:
Timestamp:
Apr 24, 2009 5:23:10 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46484
Message:

Paranoia

File:
1 edited

Legend:

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

    r18992 r19175  
    401401    if (    PGMGetGuestMode(pVCpu) >= PGMMODE_PAE
    402402        &&  pShwPageCR3 != pVCpu->pgm.s.CTX_SUFF(pShwPageCR3))
     403    {
    403404        pCurrentShwPdpt = pgmShwGetPaePDPTPtr(&pVCpu->pgm.s);
     405#ifdef IN_RC    /* Lock mapping to prevent it from being reused (currently not possible). */
     406        if (pCurrentShwPdpt)
     407            PGMDynLockHCPage(pVM, (uint8_t *)pCurrentShwPdpt);
     408#endif
     409    }
    404410
    405411    unsigned i = pMap->cPTs;
     
    491497                break;
    492498        }
     499#ifdef IN_RC
     500        /* Unlock dynamic mappings again. */
     501        if (pCurrentShwPdpt)
     502            PGMDynUnlockHCPage(pVM, (uint8_t *)pCurrentShwPdpt);
     503#endif
    493504    }
    494505}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette