Changeset 17140 in vbox
- Timestamp:
- Feb 25, 2009 4:43:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43391
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r17139 r17140 4764 4764 * 4765 4765 * @returns VBox status code. 4766 * @param pVM VM Handle.4767 4766 * @param pPage PGM pool page 4768 4767 */ 4769 DECLINLINE(bool) pgmPoolIsPageLocked(P VM pVM, PPGMPOOLPAGE pPage)4768 DECLINLINE(bool) pgmPoolIsPageLocked(PPGM pPGM, PPGMPOOLPAGE pPage) 4770 4769 { 4771 4770 if (pPage->fLocked) 4772 4771 { 4773 LogFlow(("pgmPoolIsPageLocked found root page % s\n", pgmPoolPoolKindToStr(pPage->enmKind)));4772 LogFlow(("pgmPoolIsPageLocked found root page %d\n", pPage->enmKind)); 4774 4773 if (pPage->cModifications) 4775 4774 pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */ 4776 4775 return true; 4777 4776 } 4778 Assert(pPage != pVM->pgm.s.CTX_SUFF(pShwPageCR3));4779 4777 return false; 4780 4778 } -
trunk/src/VBox/VMM/PGMPool.cpp
r17137 r17140 587 587 else if ( ( pPage->cModifications < 96 /* it's cheaper here. */ 588 588 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 589 || pgmPoolIsPageLocked( pVM, pPage)589 || pgmPoolIsPageLocked(&pVM->pgm.s, pPage) 590 590 #else 591 591 || pPage->fCR3Mix -
trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp
r17139 r17140 306 306 307 307 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 308 if (!pgmPoolIsPageLocked( pVM, pPoolPagePd))308 if (!pgmPoolIsPageLocked(&pVM->pgm.s, pPoolPagePd)) 309 309 { 310 310 /* Mark the page as locked; disallow flushing. */ … … 420 420 AssertFatal(pPoolPagePd); 421 421 422 if (pgmPoolIsPageLocked( pVM, pPoolPagePd))422 if (pgmPoolIsPageLocked(&pVM->pgm.s, pPoolPagePd)) 423 423 { 424 424 /* Mark the page as unlocked; allow flushing again. */ -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r17139 r17140 1254 1254 if ( ( pPage->cModifications < 48 /** @todo #define */ /** @todo need to check that it's not mapping EIP. */ /** @todo adjust this! */ 1255 1255 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 1256 || pgmPoolIsPageLocked( pVM, pPage)1256 || pgmPoolIsPageLocked(&pVM->pgm.s, pPage) 1257 1257 #else 1258 1258 || pPage->fCR3Mix … … 1417 1417 */ 1418 1418 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 1419 if (pgmPoolIsPageLocked( pPool->CTX_SUFF(pVM), pPage))1419 if (pgmPoolIsPageLocked(&pPool->CTX_SUFF(pVM)->pgm.s, pPage)) 1420 1420 #else 1421 1421 if (PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) == pPage->Core.Key) … … 3096 3096 /* Safety precaution in case we change the paging for other modes too in the future. */ 3097 3097 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 3098 Assert(!pgmPoolIsPageLocked( pPool->CTX_SUFF(pVM), pPage));3098 Assert(!pgmPoolIsPageLocked(&pPool->CTX_SUFF(pVM)->pgm.s, pPage)); 3099 3099 #else 3100 3100 Assert(PGMGetHyperCR3(pPool->CTX_SUFF(pVM)) != pPage->Core.Key); … … 4299 4299 */ 4300 4300 #ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY 4301 if (pgmPoolIsPageLocked( pPool->CTX_SUFF(pVM), pPage))4301 if (pgmPoolIsPageLocked(&pPool->CTX_SUFF(pVM)->pgm.s, pPage)) 4302 4302 { 4303 4303 AssertMsg( pPage->enmKind == PGMPOOLKIND_64BIT_PML4
Note:
See TracChangeset
for help on using the changeset viewer.