VirtualBox

Ignore:
Timestamp:
Nov 28, 2008 2:48:12 AM (16 years ago)
Author:
vboxsync
Message:

pgmPoolMonitorChainChanging regression fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r14751 r14753  
    431431            case PGMPOOLKIND_ROOT_PAE_PD:
    432432            {
    433                 unsigned iGst     = off / sizeof(X86PTE);           // ASSUMING 32-bit guest paging!
    434                 unsigned iShwPdpt = iGst & 3;
    435                 unsigned iShw     = iGst / 4;
     433                unsigned iGst     = off / sizeof(X86PDE);           // ASSUMING 32-bit guest paging!
     434                unsigned iShwPdpt = iGst % 256;
     435                unsigned iShw     = iGst / 2;
    436436                Assert(pPage->idx == PGMPOOL_IDX_PAE_PD);
    437                 uShw.pv = PGMPOOL_PAGE_2_PTR(pPool->CTX_SUFF(pVM), pPage + 1 + iShwPdpt);
     437                PPGMPOOLPAGE pPage2 = pPage + 1 + iShwPdpt;
     438                Assert(pPage2->idx == PGMPOOL_IDX_PAE_PD_0 + iShwPdpt);
     439                uShw.pv = PGMPOOL_PAGE_2_PTR(pPool->CTX_SUFF(pVM), pPage2);
    438440                for (unsigned i = 0; i < 2; i++, iShw++)
    439441                {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette