VirtualBox

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


Ignore:
Timestamp:
Dec 2, 2021 11:08:59 PM (3 years ago)
Author:
vboxsync
Message:

VMM: More driverless adjustments. bugref:10138

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

Legend:

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

    r85954 r92723  
    922922     * Allocate the tracer instance.
    923923     */
    924     if (fR0Enabled /*|| fRCEnabled*/)
     924    if ((fR0Enabled /*|| fRCEnabled*/) && !SUPR3IsDriverless())
    925925    {
    926926        AssertLogRel(fR0Enabled /* not possible to just enabled raw-mode atm. */);
  • trunk/src/VBox/VMM/VMMR3/GMM.cpp

    r92721 r92723  
    289289
    290290/**
    291  * @see GMMR0QueryVMMMemoryStatsReq
     291 * @note Caller does the driverless check.
     292 * @see  GMMR0QueryVMMMemoryStatsReq
    292293 */
    293294GMMR3DECL(int)  GMMR3QueryHypervisorMemoryStats(PVM pVM, uint64_t *pcTotalAllocPages, uint64_t *pcTotalFreePages, uint64_t *pcTotalBalloonPages, uint64_t *puTotalBalloonSize)
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r92626 r92723  
    14321432                        }
    14331433
    1434                         PUVM pUVM = pVM->pUVM;
    1435                         STAMR3RegisterRefresh(pUVM, &pVM->nem.s.R0Stats.cPagesAvailable, STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
    1436                                               STAMUNIT_PAGES, STAM_REFRESH_GRP_NEM, "Free pages available to the hypervisor",
    1437                                               "/NEM/R0Stats/cPagesAvailable");
    1438                         STAMR3RegisterRefresh(pUVM, &pVM->nem.s.R0Stats.cPagesInUse,     STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
    1439                                               STAMUNIT_PAGES, STAM_REFRESH_GRP_NEM, "Pages in use by hypervisor",
    1440                                               "/NEM/R0Stats/cPagesInUse");
     1434                        if (!SUPR3IsDriverless())
     1435                        {
     1436                            PUVM pUVM = pVM->pUVM;
     1437                            STAMR3RegisterRefresh(pUVM, &pVM->nem.s.R0Stats.cPagesAvailable, STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
     1438                                                  STAMUNIT_PAGES, STAM_REFRESH_GRP_NEM, "Free pages available to the hypervisor",
     1439                                                  "/NEM/R0Stats/cPagesAvailable");
     1440                            STAMR3RegisterRefresh(pUVM, &pVM->nem.s.R0Stats.cPagesInUse,     STAMTYPE_U64, STAMVISIBILITY_ALWAYS,
     1441                                                  STAMUNIT_PAGES, STAM_REFRESH_GRP_NEM, "Pages in use by hypervisor",
     1442                                                  "/NEM/R0Stats/cPagesInUse");
     1443                        }
    14411444
    14421445                    }
  • trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp

    r92410 r92723  
    282282            && !PGMR3IsNemModeEnabled(pVM) /* No ring-0 in simplified memory mode. */
    283283#endif
    284            )
     284            && !SUPR3IsDriverless())
    285285        {
    286286            if (pReg->fFlags & PDM_DEVREG_FLAGS_R0)
  • trunk/src/VBox/VMM/VMMR3/STAM.cpp

    r92387 r92723  
    313313     * Register the ring-0 statistics (GVMM/GMM).
    314314     */
    315     stamR3Ring0StatsRegisterU(pUVM);
     315    if (!SUPR3IsDriverless())
     316        stamR3Ring0StatsRegisterU(pUVM);
    316317
    317318#ifdef VBOX_WITH_DEBUGGER
     
    18571858    GVMMRESETSTATISTICSSREQ GVMMReq;
    18581859    GMMRESETSTATISTICSSREQ  GMMReq;
    1859     bool fGVMMMatched = !pszPat || !*pszPat;
     1860    bool fGVMMMatched = (!pszPat || !*pszPat) && !SUPR3IsDriverless();
    18601861    bool fGMMMatched  = fGVMMMatched;
    18611862    if (fGVMMMatched)
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