Changeset 22745 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Sep 3, 2009 1:10:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r22742 r22745 1383 1383 { 1384 1384 unsigned cErrors = 0; 1385 for (unsigned i = 0; i < RT_ELEMENTS(pShwPT->a); i++) 1385 #ifdef VBOX_STRICT 1386 for (unsigned i = 0; i < pPage->iFirstPresent; i++) 1387 { 1388 Assert(!pShwPT->a[i].n.u1Present); 1389 } 1390 #endif 1391 for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++) 1386 1392 { 1387 1393 if (pShwPT->a[i].n.u1Present) … … 1439 1445 unsigned cChanged = 0; 1440 1446 1441 for (unsigned i = 0; i < RT_ELEMENTS(pShwPT->a); i++) 1447 #ifdef VBOX_STRICT 1448 for (unsigned i = 0; i < pPage->iFirstPresent; i++) 1449 { 1450 Assert(!pShwPT->a[i].n.u1Present); 1451 } 1452 #endif 1453 for (unsigned i = pPage->iFirstPresent; i < RT_ELEMENTS(pShwPT->a); i++) 1442 1454 { 1443 1455 if (pShwPT->a[i].n.u1Present) … … 2475 2487 pgmLock(pVM); 2476 2488 2489 #ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT 2490 pgmPoolResetDirtyPages(pVM, true /* force removal. */); 2491 #endif 2492 2477 2493 /* 2478 2494 * Iterate all the pages until we've encountered all that in use. … … 2499 2515 case PGMPOOLKIND_PAE_PT_FOR_PAE_2MB: 2500 2516 { 2501 #ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT2502 if (pPage->fDirty)2503 pgmPoolFlushDirtyPage(pVM, pPool, pPage->idxDirty, true /* force removal */);2504 #endif2505 2517 #ifdef PGMPOOL_WITH_USER_TRACKING 2506 2518 if (pPage->cPresent)
Note:
See TracChangeset
for help on using the changeset viewer.