VirtualBox

Changeset 7822 in vbox for trunk/src


Ignore:
Timestamp:
Apr 9, 2008 8:52:56 AM (17 years ago)
Author:
vboxsync
Message:

Must inform pgmpool about cleared PDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r7820 r7822  
    112112    if (!pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present)
    113113    {
    114         /* lazily clear the page directory */
    115         ASMMemZero32(pVM->pgm.s.CTXMID(ap,PaePDs)[iPDPTE], PAGE_SIZE);
    116114        pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present = 1;
    117115    }
     
    26842682        {
    26852683            /* PDPT not present */
     2684            if (pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present)
     2685            {
     2686                for (unsigned iPD = 0; iPD < ELEMENTS(pPDSrc->a); iPD++)
     2687                {
     2688                    if (pPDEDst[iPD].n.u1Present)
     2689                    {
     2690                        pgmPoolFreeByPage(pPool, pgmPoolGetPage(pPool, pPDEDst[iPD].u & SHW_PDE_PG_MASK), SHW_POOL_ROOT_IDX, iPDPTE * X86_PG_PAE_ENTRIES + iPD);
     2691                        pPDEDst[iPD].u = 0;
     2692                    }
     2693                }
     2694            }
    26862695            pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present = 0;
    26872696            continue;
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