Changeset 18811 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Apr 7, 2009 12:21:17 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/MMHyper.cpp
r18800 r18811 78 78 int rc = CFGMR3QueryU32(CFGMR3GetChild(CFGMR3GetRoot(pVM), "MM"), "cbHyperHeap", &cbHyperHeap); 79 79 if (rc == VERR_CFGM_NO_PARENT || rc == VERR_CFGM_VALUE_NOT_FOUND) 80 {81 80 cbHyperHeap = VMMIsHwVirtExtForced(pVM) 82 81 ? 640*_1K 83 82 : 1280*_1K; 84 85 /* Adjust for dynamic stuff like RAM mapping chunks. Try playing kind86 of safe with existing configs here (HMA size must not change)... */87 uint64_t cbRam;88 CFGMR3QueryU64Def(CFGMR3GetRoot(pVM), "RamSize", &cbRam, 0);89 #if 0 /* MMUkHeap takes care of this now...*/90 if (cbRam > _2G)91 {92 cbRam = RT_MIN(cbRam, _1T);93 cbHyperHeap += (cbRam - _1G) / _1M * 128; /* 128 is a quick guess */94 cbHyperHeap = RT_ALIGN_32(cbHyperHeap, _64K);95 }96 #endif97 }98 83 else 99 84 AssertLogRelRCReturn(rc, rc); -
trunk/src/VBox/VMM/PGMPhys.cpp
r18792 r18811 2785 2785 * Allocate a new tracking structure first. 2786 2786 */ 2787 #if 1 /* disable on regression */2788 2787 # ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 2789 2788 PPGMCHUNKR3MAP pChunk = (PPGMCHUNKR3MAP)MMR3HeapAlloc(pVM, MM_TAG_PGM_CHUNK_MAPPING, sizeof(*pChunk)); … … 2792 2791 # endif 2793 2792 AssertReturn(pChunk, VERR_NO_MEMORY); 2794 #else2795 PPGMCHUNKR3MAP pChunk;2796 rc = MMHyperAlloc(pVM, sizeof(*pChunk), 0, MM_TAG_PGM_CHUNK_MAPPING, (void **)&pChunk);2797 AssertRCReturn(rc, rc);2798 #endif2799 2793 pChunk->Core.Key = idChunk; 2800 2794 pChunk->AgeCore.Key = pVM->pgm.s.ChunkR3Map.iNow;
Note:
See TracChangeset
for help on using the changeset viewer.