Changeset 36627 in vbox for trunk/src/VBox
- Timestamp:
- Apr 8, 2011 3:38:47 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71083
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGM.cpp
r36441 r36627 2276 2276 for (uint32_t iPage = 0; iPage < pDynMap->cPages; iPage++) 2277 2277 { 2278 paPages[iPage].pvPage += offDelta; 2279 paPages[iPage].uPte.pv += offDelta; 2278 paPages[iPage].pvPage += offDelta; 2279 paPages[iPage].uPte.pLegacy += offDelta; 2280 paPages[iPage].uPte.pPae += offDelta; 2280 2281 } 2281 2282 } -
trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp
r36416 r36627 206 206 /** The number of references. */ 207 207 int32_t volatile cRefs; 208 #ifndef IN_RC209 208 /** PTE pointer union. */ 210 209 union PGMR0DYNMAPENTRY_PPTE … … 217 216 void *pv; 218 217 } uPte; 219 #else220 /** PTE pointers. */221 struct PGMR0DYNMAPENTRY_PPTE222 {223 /** PTE pointer, 32-bit legacy version. */224 PX86PTE pLegacy;225 /** PTE pointer, PAE version. */226 PX86PTEPAE pPae;227 } uPte;228 #endif229 # ifndef IN_RC230 218 /** CPUs that haven't invalidated this entry after it's last update. */ 231 219 RTCPUSET PendingSet; 232 # endif233 220 } PGMR0DYNMAPENTRY; 234 221 /** Pointer a mapping cache entry for the ring-0. … … 251 238 /** The usual magic number / eye catcher (PGMRZDYNMAP_MAGIC). */ 252 239 uint32_t u32Magic; 253 # ifndef IN_RC254 240 /** Spinlock serializing the normal operation of the cache. */ 255 241 RTSPINLOCK hSpinlock; 256 # endif257 242 /** Array for tracking and managing the pages. */ 258 243 PPGMR0DYNMAPENTRY paPages; 259 244 /** The cache size given as a number of pages. */ 260 245 uint32_t cPages; 261 # ifndef IN_RC262 246 /** Whether it's 32-bit legacy or PAE/AMD64 paging mode. */ 263 247 bool fLegacyMode; 264 # endif265 248 /** The current load. 266 249 * This does not include guard pages. */ … … 269 252 * This is maintained to trigger the adding of more mapping space. */ 270 253 uint32_t cMaxLoad; 271 # ifndef IN_RC272 254 /** Initialization / termination lock. */ 273 255 RTSEMFASTMUTEX hInitLock; 274 # endif275 256 /** The number of guard pages. */ 276 257 uint32_t cGuardPages; 277 258 /** The number of users (protected by hInitLock). */ 278 259 uint32_t cUsers; 279 # ifndef IN_RC280 260 /** Array containing a copy of the original page tables. 281 261 * The entries are either X86PTE or X86PTEPAE according to fLegacyMode. */ … … 285 265 /** The paging mode. */ 286 266 SUPPAGINGMODE enmPgMode; 287 # endif288 267 } PGMR0DYNMAP; 289 268 … … 1610 1589 PPGMRZDYNMAPENTRY paPages = pThis->paPages; 1611 1590 uint32_t iPage = pThis->cPages; 1591 1592 #ifndef IN_RC 1612 1593 if (pThis->fLegacyMode) 1594 #endif 1613 1595 { 1614 1596 #ifdef IN_RING0 … … 1650 1632 } 1651 1633 } 1634 #ifndef IN_RC 1652 1635 else 1636 #endif 1653 1637 { 1654 1638 #ifdef IN_RING0 -
trunk/src/VBox/VMM/include/PGMInternal.h
r36441 r36627 1677 1677 int32_t volatile cRefs; 1678 1678 /** PTE pointer union. */ 1679 unionPGMRCDYNMAPENTRY_PPTE1679 struct PGMRCDYNMAPENTRY_PPTE 1680 1680 { 1681 1681 /** PTE pointer, 32-bit legacy version. */ … … 1683 1683 /** PTE pointer, PAE version. */ 1684 1684 RCPTRTYPE(PX86PTEPAE) pPae; 1685 /** PTE pointer, the void version. */1686 RTRCPTR pv;1687 1685 } uPte; 1688 1686 /** Alignment padding. */ … … 1712 1710 /** The cache size given as a number of pages. */ 1713 1711 uint32_t cPages; 1714 /** Whether it's 32-bit legacy or PAE/AMD64 paging mode. */1715 bool fLegacyMode;1716 1712 /** The current load. 1717 1713 * This does not include guard pages. */ -
trunk/src/VBox/VMM/testcase/tstVMStructRC.cpp
r35601 r36627 798 798 GEN_CHECK_OFF(PGMRCDYNMAP, paPages); 799 799 GEN_CHECK_OFF(PGMRCDYNMAP, cPages); 800 GEN_CHECK_OFF(PGMRCDYNMAP, fLegacyMode);801 800 GEN_CHECK_OFF(PGMRCDYNMAP, cLoad); 802 801 GEN_CHECK_OFF(PGMRCDYNMAP, cMaxLoad);
Note:
See TracChangeset
for help on using the changeset viewer.