vbox的更動 17371 路徑 trunk/src/VBox/VMM/PGM.cpp
- 時間撮記:
- 2009-3-5 上午01:37:58 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/PGM.cpp
r17305 r17371 1160 1160 { 1161 1161 LogFlow(("PGMR3Init:\n")); 1162 PCFGMNODE pCfgPGM = CFGMR3GetChild(CFGMR3GetRoot(pVM), "/PGM"); 1163 int rc; 1162 1164 1163 1165 /* … … 1169 1171 * Init the structure. 1170 1172 */ 1171 pVM->pgm.s.offVM = RT_OFFSETOF(VM, pgm.s);1172 pVM->pgm.s.offVCpu = RT_OFFSETOF(VMCPU, pgm.s);1173 pVM->pgm.s.offVM = RT_OFFSETOF(VM, pgm.s); 1174 pVM->pgm.s.offVCpu = RT_OFFSETOF(VMCPU, pgm.s); 1173 1175 pVM->pgm.s.enmShadowMode = PGMMODE_INVALID; 1174 1176 pVM->pgm.s.enmGuestMode = PGMMODE_INVALID; … … 1196 1198 } 1197 1199 1198 #ifdef VBOX_STRICT 1199 VMR3AtStateRegister(pVM, pgmR3ResetNoMorePhysWritesFlag, NULL); 1200 #endif 1201 PGMRegisterStringFormatTypes(); 1200 rc = CFGMR3QueryBoolDef(pCfgPGM, "RamPreAlloc", &pVM->pgm.s.fRamPreAlloc, false); 1201 AssertLogRelRCReturn(rc, rc); 1202 1203 #if HC_ARCH_BITS == 64 1204 rc = CFGMR3QueryU32Def(pCfgPGM, "MaxRing3Chunks", &pVM->pgm.s.ChunkR3Map.cMax, UINT32_MAX); 1205 #else 1206 rc = CFGMR3QueryU32Def(pCfgPGM, "MaxRing3Chunks", &pVM->pgm.s.ChunkR3Map.cMax, _1G / GMM_CHUNK_SIZE); 1207 #endif 1208 AssertLogRelRCReturn(rc, rc); 1209 for (uint32_t i = 0; i < RT_ELEMENTS(pVM->pgm.s.ChunkR3Map.Tlb.aEntries); i++) 1210 pVM->pgm.s.ChunkR3Map.Tlb.aEntries[i].idChunk = NIL_GMM_CHUNKID; 1202 1211 1203 1212 /* … … 1205 1214 */ 1206 1215 uint64_t cbRam; 1207 intrc = CFGMR3QueryU64(CFGMR3GetRoot(pVM), "RamSize", &cbRam);1216 rc = CFGMR3QueryU64(CFGMR3GetRoot(pVM), "RamSize", &cbRam); 1208 1217 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 1209 1218 cbRam = pVM->pgm.s.cbRamSize = 0; … … 1222 1231 1223 1232 /* 1224 * Register saved state data unit. 1225 */ 1233 * Register callbacks, string formatters and the saved state data unit. 1234 */ 1235 #ifdef VBOX_STRICT 1236 VMR3AtStateRegister(pVM, pgmR3ResetNoMorePhysWritesFlag, NULL); 1237 #endif 1238 PGMRegisterStringFormatTypes(); 1239 1226 1240 rc = SSMR3RegisterInternal(pVM, "pgm", 1, PGM_SAVED_STATE_VERSION, (size_t)cbRam + sizeof(PGM), 1227 1241 NULL, pgmR3Save, NULL,
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器