VirtualBox

Ignore:
Timestamp:
Mar 20, 2025 9:29:19 PM (7 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168089
Message:

VMM/PGM: Don't need the abZeroPg and abMmioPg page sized members if only NEM PGM mode is available, bugref:10391

File:
1 edited

Legend:

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

    r108132 r108676  
    5252#ifdef IN_RING3
    5353# include <iprt/thread.h>
     54# ifdef VBOX_WITH_ONLY_PGM_NEM_MODE
     55#  include <iprt/zero.h>
     56# endif
    5457#elif defined(IN_RING0)
    5558# include <iprt/mem.h>
     
    30033006#ifndef VBOX_WITH_ONLY_PGM_NEM_MODE
    30043007        AssertMsg(PGM_PAGE_GET_HCPHYS(pPage) == pVM->pgm.s.HCPhysZeroPg, ("%RGp/%R[pgmpage]\n", GCPhys, pPage));
    3005 #endif
    30063008#ifndef IN_RING0
    30073009        pTlbe->pMap = NULL;
    30083010#endif
    30093011        pTlbe->pv = pVM->pgm.s.abZeroPg;
     3012#else
     3013        /*
     3014         * Should not ever be used, as we don't implement zero pages for NEM mode currently and
     3015         * MMIO accesses are not handled through the TLB.
     3016         */
     3017        pTlbe->pv = (void *)&g_abRTZero64K[0]; /* Maximum granule size on ARM. */
     3018#endif
    30103019    }
    30113020#ifdef PGM_WITH_PHYS_TLB
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