VirtualBox

Changeset 93721 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Feb 14, 2022 12:52:27 PM (3 years ago)
Author:
vboxsync
Message:

VMM/HM: Register DBGF info handlers only when HM is enabled, bugref:9044

File:
1 edited

Legend:

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

    r93574 r93721  
    230230    if (RT_FAILURE(rc))
    231231        return rc;
    232 
    233     /*
    234      * Register info handlers.
    235      */
    236     rc = DBGFR3InfoRegisterInternalEx(pVM, "hm", "Dumps HM info.", hmR3Info, DBGFINFO_FLAGS_ALL_EMTS);
    237     AssertRCReturn(rc, rc);
    238 
    239     rc = DBGFR3InfoRegisterInternalEx(pVM, "hmeventpending", "Dumps the pending HM event.", hmR3InfoEventPending,
    240                                       DBGFINFO_FLAGS_ALL_EMTS);
    241     AssertRCReturn(rc, rc);
    242 
    243     rc = DBGFR3InfoRegisterInternalEx(pVM, "svmvmcbcache", "Dumps the HM SVM nested-guest VMCB cache.",
    244                                       hmR3InfoSvmNstGstVmcbCache, DBGFINFO_FLAGS_ALL_EMTS);
    245     AssertRCReturn(rc, rc);
    246 
    247     rc = DBGFR3InfoRegisterInternalEx(pVM, "lbr", "Dumps the HM LBR info.", hmR3InfoLbr, DBGFINFO_FLAGS_ALL_EMTS);
    248     AssertRCReturn(rc, rc);
    249232
    250233    /*
     
    525508    if (pVM->fHMEnabled)
    526509    {
     510        /*
     511         * Register info handlers.
     512         */
     513        rc = DBGFR3InfoRegisterInternalEx(pVM, "hm", "Dumps HM info.", hmR3Info, DBGFINFO_FLAGS_ALL_EMTS);
     514        AssertRCReturn(rc, rc);
     515
     516        rc = DBGFR3InfoRegisterInternalEx(pVM, "hmeventpending", "Dumps the pending HM event.", hmR3InfoEventPending,
     517                                          DBGFINFO_FLAGS_ALL_EMTS);
     518        AssertRCReturn(rc, rc);
     519
     520        rc = DBGFR3InfoRegisterInternalEx(pVM, "svmvmcbcache", "Dumps the HM SVM nested-guest VMCB cache.",
     521                                          hmR3InfoSvmNstGstVmcbCache, DBGFINFO_FLAGS_ALL_EMTS);
     522        AssertRCReturn(rc, rc);
     523
     524        rc = DBGFR3InfoRegisterInternalEx(pVM, "lbr", "Dumps the HM LBR info.", hmR3InfoLbr, DBGFINFO_FLAGS_ALL_EMTS);
     525        AssertRCReturn(rc, rc);
     526
     527
    527528        uint32_t fCaps;
    528529        rc = SUPR3QueryVTCaps(&fCaps);
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