VirtualBox

Ignore:
Timestamp:
Jan 12, 2022 7:14:56 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149228
Message:

VMM/NEM-win: Just drop the ring-0 bits when NEM/PGM mode is enabled. bugref:10122 bugref:10162

File:
1 edited

Legend:

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

    r93115 r93207  
    122122
    123123#ifdef RT_OS_WINDOWS
     124# ifndef VBOX_WITH_PGM_NEM_MODE
     125
    124126    /** @cfgm{/NEM/UseRing0Runloop, bool, true}
    125127     * Whether to use the ring-0 runloop (if enabled in the build) or the ring-3 one.
    126128     * The latter is generally slower.  This option serves as a way out in case
    127129     * something breaks in the ring-0 loop. */
    128 # ifdef NEM_WIN_USE_RING0_RUNLOOP_BY_DEFAULT
     130#  ifdef NEM_WIN_USE_RING0_RUNLOOP_BY_DEFAULT
    129131    bool fUseRing0Runloop = true;
    130 # else
     132#  else
    131133    bool fUseRing0Runloop = false;
    132 # endif
     134#  endif
    133135    rc = CFGMR3QueryBoolDef(pCfgNem, "UseRing0Runloop", &fUseRing0Runloop, fUseRing0Runloop);
    134136    AssertLogRelRCReturn(rc, rc);
    135137    pVM->nem.s.fUseRing0Runloop = fUseRing0Runloop;
     138# endif
    136139#endif
    137140
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