VirtualBox

Changeset 47512 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 1, 2013 4:30:19 PM (11 years ago)
Author:
vboxsync
Message:

VMM: make the StatExitHostNmi release

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

Legend:

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

    r47472 r47512  
    74217421         */
    74227422        VMXDispatchHostNmi();
    7423         STAM_COUNTER_INC(&pVCpu->hm.s.StatExitHostNmi);
     7423        STAM_REL_COUNTER_INC(&pVCpu->hm.s.StatExitHostNmi);
    74247424        STAM_PROFILE_ADV_STOP(&pVCpu->hm.s.StatExitXcptNmi, y3);
    74257425        return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r47472 r47512  
    35353535        case VMX_EXIT_INTERRUPTION_INFO_TYPE_NMI:       /* Non-maskable interrupt. */
    35363536            /* External interrupt; leave to allow it to be dispatched again. */
    3537             STAM_COUNTER_INC(&pVCpu->hm.s.StatExitHostNmi);
     3537            STAM_REL_COUNTER_INC(&pVCpu->hm.s.StatExitHostNmi);
    35383538            rc = VINF_EM_RAW_INTERRUPT;
    35393539            break;
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r47444 r47512  
    561561    STAM_REG(pVM, &pVM->hm.s.StatTprReplaceSuccess, STAMTYPE_COUNTER, "/HM/TPR/Replace/Success",STAMUNIT_OCCURENCES, "Number of times an instruction was successfully patched.");
    562562    STAM_REG(pVM, &pVM->hm.s.StatTprReplaceFailure, STAMTYPE_COUNTER, "/HM/TPR/Replace/Failed", STAMUNIT_OCCURENCES, "Number of unsuccessful patch attempts.");
     563#endif
    563564
    564565    /*
     
    570571        int    rc;
    571572
     573#ifdef VBOX_WITH_STATISTICS
    572574        rc = STAMR3RegisterF(pVM, &pVCpu->hm.s.StatPoke, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL,
    573575                             "Profiling of RTMpPokeCpu",
     
    631633# endif
    632634
     635#endif
    633636# define HM_REG_COUNTER(a, b, desc) \
    634637        rc = STAMR3RegisterF(pVM, a, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, desc, b, i); \
    635638        AssertRC(rc);
    636639
     640#ifdef VBOX_WITH_STATISTICS
    637641        HM_REG_COUNTER(&pVCpu->hm.s.StatExitShadowNM,           "/HM/CPU%d/Exit/Trap/Shw/#NM", "Shadow #NM (device not available, no math co-processor) exception.");
    638642        HM_REG_COUNTER(&pVCpu->hm.s.StatExitGuestNM,            "/HM/CPU%d/Exit/Trap/Gst/#NM", "Guest #NM (device not available, no math co-processor) exception.");
     
    682686        HM_REG_COUNTER(&pVCpu->hm.s.StatExitMaxResume,          "/HM/CPU%d/Exit/MaxResume", "Maximum VMRESUME inner-loop counter reached.");
    683687        HM_REG_COUNTER(&pVCpu->hm.s.StatExitExtInt,             "/HM/CPU%d/Exit/ExtInt", "Host interrupt received.");
     688#endif
    684689        HM_REG_COUNTER(&pVCpu->hm.s.StatExitHostNmi,            "/HM/CPU%d/Exit/HostNmi", "Host NMI received.");
     690#ifdef VBOX_WITH_STATISTICS
    685691        HM_REG_COUNTER(&pVCpu->hm.s.StatExitPreemptTimer,       "/HM/CPU%d/Exit/PreemptTimer", "VMX-preemption timer expired.");
    686692        HM_REG_COUNTER(&pVCpu->hm.s.StatExitTprBelowThreshold,  "/HM/CPU%d/Exit/TprBelowThreshold", "TPR lowered below threshold by the guest.");
     
    796802        }
    797803
    798     }
    799804#endif /* VBOX_WITH_STATISTICS */
     805    }
    800806
    801807#ifdef VBOX_WITH_CRASHDUMP_MAGIC
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