VirtualBox

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


Ignore:
Timestamp:
Jul 9, 2019 4:56:19 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HM: Renamed some stat counters to make it more clear what they are for.

Location:
trunk/src/VBox/VMM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r79625 r79627  
    59735973                     */
    59745974                    Assert(pVmcb->ctrl.ExitIntInfo.n.u3Type != SVM_EVENT_SOFTWARE_INT);
    5975                     STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingReflect);
     5975                    STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectReflect);
    59765976                    hmR0SvmSetPendingEvent(pVCpu, &pVmcb->ctrl.ExitIntInfo, GCPtrFaultAddress);
    59775977
     
    60046004                else
    60056005                {
    6006                     STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingReflect);
     6006                    STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectConvertDF);
    60076007                    hmR0SvmSetPendingXcptDF(pVCpu);
    60086008                    rc = VINF_HM_DOUBLE_FAULT;
     
    72197219        if (pVCpu->hm.s.Event.fPending)
    72207220        {
    7221             STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
     7221            STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectInterpret);
    72227222            return VINF_EM_RAW_INJECT_TRPM_EVENT;
    72237223        }
     
    72997299     */
    73007300    if (pVCpu->hm.s.Event.fPending)
    7301         STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingNPF);
     7301        STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectReflectNPF);
    73027302
    73037303    return rc;
     
    77217721    if (RT_UNLIKELY(pVCpu->hm.s.Event.fPending))
    77227722    {
    7723         STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
     7723        STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectInterpret);
    77247724        return VINF_EM_RAW_INJECT_TRPM_EVENT;
    77257725    }
     
    82338233    if (pVCpu->hm.s.Event.fPending)
    82348234    {
    8235         STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
     8235        STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectInterpret);
    82368236        return VINF_EM_RAW_INJECT_TRPM_EVENT;
    82378237    }
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r79626 r79627  
    1378513785
    1378613786                /* If uExitVector is #PF, CR2 value will be updated from the VMCS if it's a guest #PF, see hmR0VmxExitXcptPF(). */
    13787                 STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingReflect);
     13787                STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectReflect);
    1378813788                hmR0VmxSetPendingEvent(pVCpu, VMX_ENTRY_INT_INFO_FROM_EXIT_IDT_INFO(pVmxTransient->uIdtVectoringInfo),
    1378913789                                       0 /* cbInstr */, u32ErrCode, pVCpu->cpum.GstCtx.cr2);
     
    1381413814                else
    1381513815                {
    13816                     STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingReflect);
     13816                    STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectConvertDF);
    1381713817                    hmR0VmxSetPendingXcptDF(pVCpu);
    1381813818                    Log4Func(("IDT: Pending vectoring #DF %#RX64 uIdtVector=%#x uExitVector=%#x\n", pVCpu->hm.s.Event.u64IntInfo,
     
    1619416194        if (RT_UNLIKELY(pVCpu->hm.s.Event.fPending))
    1619516195        {
    16196             STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
     16196            STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectInterpret);
    1619716197            return VINF_EM_RAW_INJECT_TRPM_EVENT;
    1619816198        }
     
    1637316373        if (RT_UNLIKELY(pVCpu->hm.s.Event.fPending))
    1637416374        {
    16375             STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingInterpret);
     16375            STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectInterpret);
    1637616376            return VINF_EM_RAW_INJECT_TRPM_EVENT;
    1637716377        }
     
    1646016460         */
    1646116461        if (pVCpu->hm.s.Event.fPending)
    16462             STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectPendingNPF);
     16462            STAM_COUNTER_INC(&pVCpu->hm.s.StatInjectReflectNPF);
    1646316463    }
    1646416464    else
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r79624 r79627  
    811811        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectInterrupt,        "/HM/CPU%d/EventInject/Interrupt", "Injected an external interrupt into the guest.");
    812812        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectXcpt,             "/HM/CPU%d/EventInject/Trap", "Injected an exception into the guest.");
    813         HM_REG_COUNTER(&pVCpu->hm.s.StatInjectPendingReflect,   "/HM/CPU%d/EventInject/PendingReflect", "Reflecting an exception (or #DF) caused due to event injection.");
    814         HM_REG_COUNTER(&pVCpu->hm.s.StatInjectPendingInterpret, "/HM/CPU%d/EventInject/PendingInterpret", "Falling to interpreter for handling exception caused due to event injection.");
    815         HM_REG_COUNTER(&pVCpu->hm.s.StatInjectPendingNPF,       "/HM/CPU%d/EventInject/PendingNPF", "Reflecting an event that caused an EPT violation / Nested #PF.");
     813        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectReflect,          "/HM/CPU%d/EventInject/Reflect", "Reflecting an exception caused due to event injection.");
     814        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectConvertDF,        "/HM/CPU%d/EventInject/ReflectDF", "Injected a converted #DF caused due to event injection.");
     815        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectInterpret,        "/HM/CPU%d/EventInject/Interpret", "Falling back to interpreter for handling exception caused due to event injection.");
     816        HM_REG_COUNTER(&pVCpu->hm.s.StatInjectReflectNPF,       "/HM/CPU%d/EventInject/ReflectNPF", "Reflecting event that caused an EPT violation / nested #PF.");
    816817
    817818        HM_REG_COUNTER(&pVCpu->hm.s.StatFlushPage,              "/HM/CPU%d/Flush/Page", "Invalidating a guest page on all guest CPUs.");
  • trunk/src/VBox/VMM/include/HMInternal.h

    r79624 r79627  
    11211121    STAMCOUNTER             StatInjectInterrupt;
    11221122    STAMCOUNTER             StatInjectXcpt;
    1123     STAMCOUNTER             StatInjectPendingReflect;
    1124     STAMCOUNTER             StatInjectPendingInterpret;
    1125     STAMCOUNTER             StatInjectPendingNPF;
     1123    STAMCOUNTER             StatInjectReflect;
     1124    STAMCOUNTER             StatInjectConvertDF;
     1125    STAMCOUNTER             StatInjectInterpret;
     1126    STAMCOUNTER             StatInjectReflectNPF;
    11261127
    11271128    STAMCOUNTER             StatExitAll;
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