VirtualBox

Changeset 86461 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 6, 2020 4:40:59 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140765
Message:

VMM/PGM: Don't check for, or even define, PGM_PDFLAGS_MAPPING when PGM_WITHOUT_MAPPINGS is active (the default now).

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp

    r85180 r86461  
    13461346                                        Pde.b.u1NoExecute   ? "NX" : "--",
    13471347                                        Pde.u & PGM_PDFLAGS_BIG_PAGE    ? 'b' : '-',
     1348#ifndef PGM_WITHOUT_MAPPINGS
    13481349                                        Pde.u & PGM_PDFLAGS_MAPPING     ? 'm' : '-',
     1350#else
     1351                                        '-',
     1352#endif
    13491353                                        Pde.u & PGM_PDFLAGS_TRACK_DIRTY ? 'd' : '-',
    13501354                                        Pde.u & X86_PDE2M_PAE_PG_MASK);
     
    13751379                                        Pde.n.u1NoExecute   ? "NX" : "--",
    13761380                                        Pde.u & PGM_PDFLAGS_BIG_PAGE    ? 'b' : '-',
     1381#ifndef PGM_WITHOUT_MAPPINGS
    13771382                                        Pde.u & PGM_PDFLAGS_MAPPING     ? 'm' : '-',
     1383#else
     1384                                        '-',
     1385#endif
    13781386                                        Pde.u & PGM_PDFLAGS_TRACK_DIRTY ? 'd' : '-',
    13791387                                        Pde.u & X86_PDE_PAE_PG_MASK);
     
    13861394                if (cMaxDepth)
    13871395                {
    1388                     int rc2 = pgmR3DumpHierarchyShwPaePT(pState, Pde.u & X86_PDE_PAE_PG_MASK, !!(Pde.u & PGM_PDFLAGS_MAPPING));
     1396                    int rc2 = pgmR3DumpHierarchyShwPaePT(pState, Pde.u & X86_PDE_PAE_PG_MASK,
     1397#ifndef PGM_WITHOUT_MAPPINGS
     1398                                                         RT_BOOL(Pde.u & PGM_PDFLAGS_MAPPING)
     1399#else
     1400                                                         false /*fIsMapping*/
     1401#endif
     1402                                                         );
    13891403                    if (rc2 < rc && RT_SUCCESS(rc))
    13901404                        rc = rc2;
     
    16621676                                        Pde.b.u1PAT         ? "AT" : "--",
    16631677                                        Pde.u & PGM_PDFLAGS_BIG_PAGE    ? 'b' : '-',
     1678#ifndef PGM_WITHOUT_MAPPINGS
    16641679                                        Pde.u & PGM_PDFLAGS_MAPPING     ? 'm' : '-',
     1680#else
     1681                                        '-',
     1682#endif
    16651683                                        Pde.u & PGM_PDFLAGS_TRACK_DIRTY ? 'd' : '-',
    16661684                                        u64Phys);
     
    16831701                                        Pde.n.u1CacheDisable? "CD" : "--",
    16841702                                        Pde.u & PGM_PDFLAGS_BIG_PAGE    ? 'b' : '-',
     1703#ifndef PGM_WITHOUT_MAPPINGS
    16851704                                        Pde.u & PGM_PDFLAGS_MAPPING     ? 'm' : '-',
     1705#else
     1706                                        '-',
     1707#endif
    16861708                                        Pde.u & PGM_PDFLAGS_TRACK_DIRTY ? 'd' : '-',
    16871709                                        Pde.u & X86_PDE_PG_MASK);
     
    16921714                if (cMaxDepth)
    16931715                {
    1694                     int rc2 = pgmR3DumpHierarchyShw32BitPT(pState, Pde.u & X86_PDE_PG_MASK, !!(Pde.u & PGM_PDFLAGS_MAPPING));
     1716                    int rc2 = pgmR3DumpHierarchyShw32BitPT(pState, Pde.u & X86_PDE_PG_MASK,
     1717#ifndef PGM_WITHOUT_MAPPINGS
     1718                                                           !!(Pde.u & PGM_PDFLAGS_MAPPING)
     1719#else
     1720                                                           false /*fIsMapping*/
     1721#endif
     1722                                                           );
    16951723                    if (rc2 < rc && RT_SUCCESS(rc))
    16961724                        rc = rc2;
  • trunk/src/VBox/VMM/VMMR3/PGMPool.cpp

    r85179 r86461  
    543543                                &&  pShwPD->a[i].b.u1Size)
    544544                            {
     545# ifndef PGM_WITHOUT_MAPPINGS
    545546                                Assert(!(pShwPD->a[i].u & PGM_PDFLAGS_MAPPING));
     547# endif
    546548                                pShwPD->a[i].u = 0;
    547549                                Assert(pPage->cPresent);
     
    564566                                &&  pShwPD->a[i].b.u1Size)
    565567                            {
     568# ifndef PGM_WITHOUT_MAPPINGS
    566569                                Assert(!(pShwPD->a[i].u & PGM_PDFLAGS_MAPPING));
     570# endif
    567571                                pShwPD->a[i].u = 0;
    568572                                Assert(pPage->cPresent);
Note: See TracChangeset for help on using the changeset viewer.

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