Changeset 23535 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 4, 2009 1:33:03 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53178
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r23534 r23535 2719 2719 /** The number of dirty pages. */ 2720 2720 uint32_t cDirtyPages; 2721 /** The number of ready zero pages. */ 2722 uint32_t cZeroPages; 2723 /** The number of write monitored pages. */ 2724 uint32_t cMonitoredPages; 2721 2725 } Rom, 2722 2726 Mmio2, 2723 2727 Ram; 2724 /** The number of monitored pages. */ 2725 uint32_t cMonitoredPages; 2726 /** The number of ignored pages. */ 2728 /** The number of ignored pages in the RAM ranges (i.e. MMIO, MMIO2 and ROM). */ 2727 2729 uint32_t cIgnoredPages; 2728 2730 /** Indicates that a live save operation is active. */ 2729 2731 bool fActive; 2730 2732 /** Padding. */ 2731 bool afReserved[ 4+3];2733 bool afReserved[3]; 2732 2734 } LiveSave; 2733 2735 -
trunk/src/VBox/VMM/PGMSavedState.cpp
r23534 r23535 1156 1156 { 1157 1157 Assert(!paLSPages[iPage].fWriteMonitored); 1158 pVM->pgm.s.LiveSave.cMonitoredPages++; 1158 pVM->pgm.s.LiveSave.Ram.cMonitoredPages++; 1159 if (paLSPages[iPage].fZero) 1160 pVM->pgm.s.LiveSave.Ram.cZeroPages--; 1159 1161 } 1160 1162 … … 1204 1206 pVM->pgm.s.LiveSave.Ram.cDirtyPages++; 1205 1207 } 1208 pVM->pgm.s.LiveSave.Ram.cZeroPages++; 1206 1209 } 1207 1210 break; … … 1246 1249 pVM->pgm.s.cWrittenToPages--; 1247 1250 } 1248 pVM->pgm.s.LiveSave. cMonitoredPages--;1251 pVM->pgm.s.LiveSave.Ram.cMonitoredPages--; 1249 1252 } 1250 1253 … … 1349 1352 int rc; 1350 1353 RTGCPHYS GCPhys = pCur->GCPhys + ((RTGCPHYS)iPage << PAGE_SHIFT); 1351 1352 if (!PGM_PAGE_IS_ZERO(&pCur->aPages[iPage])) 1354 bool fZero = PGM_PAGE_IS_ZERO(&pCur->aPages[iPage]); 1355 1356 if (!fZero) 1353 1357 { 1354 1358 /* … … 1399 1403 pVM->pgm.s.LiveSave.Ram.cReadyPages++; 1400 1404 pVM->pgm.s.LiveSave.Ram.cDirtyPages--; 1405 if (fZero) 1406 pVM->pgm.s.LiveSave.Ram.cZeroPages++; 1401 1407 } 1402 1408 if (idRamRangesGen != pVM->pgm.s.idRamRangesGen) … … 1538 1544 } 1539 1545 1540 //#include <iprt/stream.h>1546 #include <iprt/stream.h> 1541 1547 1542 1548 /** … … 1550 1556 static DECLCALLBACK(int) pgmR3LiveVote(PVM pVM, PSSMHANDLE pSSM) 1551 1557 { 1552 #if 0 1553 RTPrintf("# Ram R/D=%08x/%08x Ignored=%#08x Monitored=%#08x Rom R/D=%08x/%08x Mmio2 R/D=%08x/%08x\n", 1558 #if 1 1559 RTPrintf("# Rom[R/D/Z/M]=%03x/%03x/%03x/%03x Mmio2=%04x/%04x/%04x/%04x Ram=%06x/%06x/%06x/%06x Ignored=%03x\n", 1560 pVM->pgm.s.LiveSave.Rom.cReadyPages, 1561 pVM->pgm.s.LiveSave.Rom.cDirtyPages, 1562 pVM->pgm.s.LiveSave.Rom.cZeroPages, 1563 pVM->pgm.s.LiveSave.Rom.cMonitoredPages, 1564 pVM->pgm.s.LiveSave.Mmio2.cReadyPages, 1565 pVM->pgm.s.LiveSave.Mmio2.cDirtyPages, 1566 pVM->pgm.s.LiveSave.Mmio2.cZeroPages, 1567 pVM->pgm.s.LiveSave.Mmio2.cMonitoredPages, 1554 1568 pVM->pgm.s.LiveSave.Ram.cReadyPages, 1555 1569 pVM->pgm.s.LiveSave.Ram.cDirtyPages, 1556 pVM->pgm.s.LiveSave.cIgnoredPages, 1557 pVM->pgm.s.LiveSave.cMonitoredPages, 1558 pVM->pgm.s.LiveSave.Rom.cReadyPages, 1559 pVM->pgm.s.LiveSave.Rom.cDirtyPages, 1560 pVM->pgm.s.LiveSave.Mmio2.cReadyPages, 1561 pVM->pgm.s.LiveSave.Mmio2.cDirtyPages 1570 pVM->pgm.s.LiveSave.Ram.cZeroPages, 1571 pVM->pgm.s.LiveSave.Ram.cMonitoredPages, 1572 pVM->pgm.s.LiveSave.cIgnoredPages 1562 1573 ); 1563 1574 static int s_iHack = 0;
Note:
See TracChangeset
for help on using the changeset viewer.