VirtualBox

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


Ignore:
Timestamp:
May 23, 2018 5:53:43 PM (7 years ago)
Author:
vboxsync
Message:

NEM/win: Count cpuid and msr exits.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r72306 r72308  
    17821782            case HvMessageTypeX64CpuidIntercept:
    17831783                Assert(pMsg->Header.PayloadSize == sizeof(pMsg->X64CpuIdIntercept));
     1784                STAM_REL_COUNTER_INC(&pVCpu->nem.s.StatExitCpuId);
    17841785                return nemHCWinHandleMessageCpuId(pVCpu, &pMsg->X64CpuIdIntercept, pCtx);
    17851786
    17861787            case HvMessageTypeX64MsrIntercept:
    17871788                Assert(pMsg->Header.PayloadSize == sizeof(pMsg->X64MsrIntercept));
     1789                STAM_REL_COUNTER_INC(&pVCpu->nem.s.StatExitMsr);
    17881790                return nemHCWinHandleMessageMsr(pVCpu, &pMsg->X64MsrIntercept, pCtx, pGVCpu);
    17891791
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r72306 r72308  
    11451145                            STAMR3RegisterF(pVM, &pNemCpu->StatExitHalt,            STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of HLT exits",                    "/NEM/CPU%u/ExitHalt", iCpu);
    11461146                            STAMR3RegisterF(pVM, &pNemCpu->StatExitInterruptWindow, STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of HLT exits",                    "/NEM/CPU%u/ExitInterruptWindow", iCpu);
     1147                            STAMR3RegisterF(pVM, &pNemCpu->StatExitCpuId,           STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of CPUID exits",                  "/NEM/CPU%u/ExitCpuId", iCpu);
     1148                            STAMR3RegisterF(pVM, &pNemCpu->StatExitMsr,             STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of MSR access exits",             "/NEM/CPU%u/ExitMsr", iCpu);
    11471149                            STAMR3RegisterF(pVM, &pNemCpu->StatGetMsgTimeout,       STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of get message timeouts/alerts",  "/NEM/CPU%u/GetMsgTimeout", iCpu);
    11481150                            STAMR3RegisterF(pVM, &pNemCpu->StatStopCpuSuccess,      STAMTYPE_COUNTER, STAMVISIBILITY_ALWAYS, STAMUNIT_OCCURENCES, "Number of successful CPU stops",         "/NEM/CPU%u/StopCpuSuccess", iCpu);
  • trunk/src/VBox/VMM/include/NEMInternal.h

    r72300 r72308  
    241241    STAMCOUNTER                 StatExitHalt;
    242242    STAMCOUNTER                 StatExitInterruptWindow;
     243    STAMCOUNTER                 StatExitCpuId;
     244    STAMCOUNTER                 StatExitMsr;
    243245    STAMCOUNTER                 StatGetMsgTimeout;
    244246    STAMCOUNTER                 StatStopCpuSuccess;
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