- Timestamp:
- Feb 25, 2009 1:15:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r17120 r17127 1475 1475 * Reject any attempts at flushing the currently active shadow CR3 mapping 1476 1476 */ 1477 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 1478 if (pgmPoolIsActiveRootPage(pVM, pPage)) 1479 #else 1477 1480 if (PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) == pPage->Core.Key) 1481 #endif 1478 1482 { 1479 1483 /* Refresh the cr3 mapping by putting it at the head of the age list. */ … … 3150 3154 3151 3155 /* Safety precaution in case we change the paging for other modes too in the future. */ 3156 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 3157 Assert(!pgmPoolIsActiveRootPage(pVM, pPage)); 3158 #else 3152 3159 Assert(PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) != pPage->Core.Key); 3160 #endif 3153 3161 3154 3162 #ifdef VBOX_STRICT … … 4349 4357 * Quietly reject any attempts at flushing the currently active shadow CR3 mapping 4350 4358 */ 4351 if (PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) == pPage->Core.Key)4352 {4353 4359 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 4360 if (pgmPoolIsActiveRootPage(pVM, pPage)) 4361 { 4354 4362 AssertMsg( pPage->enmKind == PGMPOOLKIND_64BIT_PML4 4355 4363 || pPage->enmKind == PGMPOOLKIND_PAE_PDPT 4356 4364 || pPage->enmKind == PGMPOOLKIND_PAE_PDPT_FOR_32BIT 4357 4365 || pPage->enmKind == PGMPOOLKIND_32BIT_PD, 4366 || pPage->enmKind == PGMPOOLKIND_PAE_PD0_FOR_32BIT_PD 4367 || pPage->enmKind == PGMPOOLKIND_PAE_PD1_FOR_32BIT_PD 4368 || pPage->enmKind == PGMPOOLKIND_PAE_PD2_FOR_32BIT_PD 4369 || pPage->enmKind == PGMPOOLKIND_PAE_PD3_FOR_32BIT_PD, 4358 4370 ("Can't free the shadow CR3! (%RHp vs %RHp kind=%d\n", PGMGetHyperCR3(pPool->CTX_SUFF(pVM)), pPage->Core.Key, pPage->enmKind)); 4359 4371 #else 4372 if (PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) == pPage->Core.Key) 4373 { 4360 4374 AssertMsg(pPage->enmKind == PGMPOOLKIND_64BIT_PML4, 4361 4375 ("Can't free the shadow CR3! (%RHp vs %RHp kind=%d\n", PGMGetHyperCR3(pPool->CTX_SUFF(pVM)), pPage->Core.Key, pPage->enmKind));
Note:
See TracChangeset
for help on using the changeset viewer.