VirtualBox

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


Ignore:
Timestamp:
Feb 14, 2022 2:33:32 PM (3 years ago)
Author:
vboxsync
Message:

VMM/HM: Need to postpone registering the debug info handlers further, bugref:9044

File:
1 edited

Legend:

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

    r93725 r93729  
    510510    if (pVM->fHMEnabled)
    511511    {
    512         /*
    513          * Register info handlers.
    514          */
    515         rc = DBGFR3InfoRegisterInternalEx(pVM, "hm", "Dumps HM info.", hmR3Info, DBGFINFO_FLAGS_ALL_EMTS);
    516         AssertRCReturn(rc, rc);
    517 
    518         rc = DBGFR3InfoRegisterInternalEx(pVM, "hmeventpending", "Dumps the pending HM event.", hmR3InfoEventPending,
    519                                           DBGFINFO_FLAGS_ALL_EMTS);
    520         AssertRCReturn(rc, rc);
    521 
    522         rc = DBGFR3InfoRegisterInternalEx(pVM, "svmvmcbcache", "Dumps the HM SVM nested-guest VMCB cache.",
    523                                           hmR3InfoSvmNstGstVmcbCache, DBGFINFO_FLAGS_ALL_EMTS);
    524         AssertRCReturn(rc, rc);
    525 
    526         rc = DBGFR3InfoRegisterInternalEx(pVM, "lbr", "Dumps the HM LBR info.", hmR3InfoLbr, DBGFINFO_FLAGS_ALL_EMTS);
    527         AssertRCReturn(rc, rc);
    528 
    529 
    530512        uint32_t fCaps;
    531513        rc = SUPR3QueryVTCaps(&fCaps);
     
    654636            || pVM->bMainExecutionEngine == VM_EXEC_ENGINE_HW_VIRT /* paranoia */)
    655637            return VM_SET_ERROR(pVM, rc, "Misconfigured VM: No guest execution engine available!");
     638    }
     639
     640    if (pVM->fHMEnabled)
     641    {
     642        /*
     643         * Register info handlers now that HM is used for sure.
     644         */
     645        rc = DBGFR3InfoRegisterInternalEx(pVM, "hm", "Dumps HM info.", hmR3Info, DBGFINFO_FLAGS_ALL_EMTS);
     646        AssertRCReturn(rc, rc);
     647
     648        rc = DBGFR3InfoRegisterInternalEx(pVM, "hmeventpending", "Dumps the pending HM event.", hmR3InfoEventPending,
     649                                          DBGFINFO_FLAGS_ALL_EMTS);
     650        AssertRCReturn(rc, rc);
     651
     652        rc = DBGFR3InfoRegisterInternalEx(pVM, "svmvmcbcache", "Dumps the HM SVM nested-guest VMCB cache.",
     653                                          hmR3InfoSvmNstGstVmcbCache, DBGFINFO_FLAGS_ALL_EMTS);
     654        AssertRCReturn(rc, rc);
     655
     656        rc = DBGFR3InfoRegisterInternalEx(pVM, "lbr", "Dumps the HM LBR info.", hmR3InfoLbr, DBGFINFO_FLAGS_ALL_EMTS);
     657        AssertRCReturn(rc, rc);
    656658    }
    657659
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