VirtualBox

Ignore:
Timestamp:
Apr 17, 2008 9:24:20 AM (17 years ago)
Author:
vboxsync
Message:

Don't free mappings (PAE mode)

File:
1 edited

Legend:

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

    r8079 r8084  
    27132713                for (unsigned iPD = 0; iPD < ELEMENTS(pPDSrc->a); iPD++)
    27142714                {
    2715                     if (pPDEDst[iPD].n.u1Present)
     2715                    if (   pPDEDst[iPD].n.u1Present
     2716                        && !(pPDEDst[iPD].u & PGM_PDFLAGS_MAPPING))
    27162717                    {
    27172718                        pgmPoolFreeByPage(pPool, pgmPoolGetPage(pPool, pPDEDst[iPD].u & SHW_PDE_PG_MASK), SHW_POOL_ROOT_IDX, iPDPTE * X86_PG_PAE_ENTRIES + iPD);
     
    27202721                }
    27212722            }
    2722             pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present = 0;
     2723            if (!(pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].u & PGM_PLXFLAGS_MAPPING))
     2724                pVM->pgm.s.CTXMID(p,PaePDPT)->a[iPDPTE].n.u1Present = 0;
    27232725            continue;
    27242726        }
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