VirtualBox

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


Ignore:
Timestamp:
Nov 12, 2021 10:21:47 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148265
Message:

VMM/PDM,PGM: Added PGMR3IsNemModeEnabled and made PDM not put devices in ring-0 when the simplified memory mode is active as it is implied that we won't be running anything from ring-0 (at least not on windows and mac, I think). PDM must use RTMemAllocZ instead of MMR3HeapAllocZEx for allocating device instance data to get proper alignment. bugref:10122

File:
1 edited

Legend:

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

    r92409 r92410  
    279279        bool fRCEnabled = false;
    280280        if (   (pReg->fFlags & (PDM_DEVREG_FLAGS_R0 | PDM_DEVREG_FLAGS_RC))
    281             && !PGMR3IsNemModeEnabled(pVM) /* No ring-0 in simplified memory mode. */ )
     281#ifdef VBOX_WITH_PGM_NEM_MODE
     282            && !PGMR3IsNemModeEnabled(pVM) /* No ring-0 in simplified memory mode. */
     283#endif
     284           )
    282285        {
    283286            if (pReg->fFlags & PDM_DEVREG_FLAGS_R0)
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