Changeset 36897 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 29, 2011 3:11:55 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71476
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r36893 r36897 580 580 581 581 /** 582 * Rebuilds the RAM range search trees. 583 * 584 * @param pVM The VM handle. 585 */ 586 static void pgmR3PhysRebuildRamRangeSearchTrees(PVM pVM) 587 { 588 #ifdef PGM_USE_RAMRANGE_SEARCH_TREES 589 /* 590 * Create the three balanced trees by sequentially working the linked list. 591 */ 592 593 /* Count them and calculate the max depth. */ 594 unsigned cRanges = 0; 595 for (PPGMRAMRANGE pRam = pVM->pgm.s.pRamRangesXR3; pRam; pRam = pRam->pNextR3) 596 cRanges++; 597 598 /// contine later 599 600 #endif 601 } 602 603 604 /** 582 605 * Relinks the RAM ranges using the pSelfRC and pSelfR0 pointers. 583 606 * … … 626 649 } 627 650 ASMAtomicIncU32(&pVM->pgm.s.idRamRangesGen); 651 652 pgmR3PhysRebuildRamRangeSearchTrees(pVM); 653 628 654 } 629 655 … … 662 688 } 663 689 ASMAtomicIncU32(&pVM->pgm.s.idRamRangesGen); 690 691 pgmR3PhysRebuildRamRangeSearchTrees(pVM); 664 692 pgmUnlock(pVM); 665 693 } … … 696 724 } 697 725 ASMAtomicIncU32(&pVM->pgm.s.idRamRangesGen); 726 727 pgmR3PhysRebuildRamRangeSearchTrees(pVM); 698 728 pgmUnlock(pVM); 699 729 } -
trunk/src/VBox/VMM/include/PGMInternal.h
r36893 r36897 1300 1300 /** Pointer to self - RC pointer. */ 1301 1301 RCPTRTYPE(struct PGMRAMRANGE *) pSelfRC; 1302 1303 #ifdef PGM_USE_RAMRANGE_SEARCH_TREES 1304 /** Pointer to the left search three node - ring-3 context. */ 1305 R3PTRTYPE(struct PGMRAMRANGE *) pLeftR3; 1306 /** Pointer to the right search three node - ring-3 context. */ 1307 R3PTRTYPE(struct PGMRAMRANGE *) pRightR3; 1308 /** Pointer to the left search three node - ring-0 context. */ 1309 R0PTRTYPE(struct PGMRAMRANGE *) pLeftR0; 1310 /** Pointer to the right search three node - ring-0 context. */ 1311 R0PTRTYPE(struct PGMRAMRANGE *) pRightR0; 1312 /** Pointer to the left search three node - raw-mode context. */ 1313 RCPTRTYPE(struct PGMRAMRANGE *) pLeftRC; 1314 /** Pointer to the right search three node - raw-mode context. */ 1315 RCPTRTYPE(struct PGMRAMRANGE *) pRightRC; 1316 #endif 1317 1302 1318 /** Padding to make aPage aligned on sizeof(PGMPAGE). */ 1303 1319 uint32_t au32Alignment2[HC_ARCH_BITS == 32 ? 1 : 3];
Note:
See TracChangeset
for help on using the changeset viewer.