VirtualBox

Changeset 19697 in vbox


Ignore:
Timestamp:
May 14, 2009 2:00:44 PM (16 years ago)
Author:
vboxsync
Message:

More statistics

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r19679 r19697  
    314314        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitRdtsc,              "/HWACCM/CPU%d/Exit/Instr/Rdtsc");
    315315        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitRdpmc,              "/HWACCM/CPU%d/Exit/Instr/Rdpmc");
     316        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitRdmsr,              "/HWACCM/CPU%d/Exit/Instr/Rdmsr");
     317        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitWrmsr,              "/HWACCM/CPU%d/Exit/Instr/Wrmsr");
     318        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitMwait,              "/HWACCM/CPU%d/Exit/Instr/Mwait");
    316319        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitDRxWrite,           "/HWACCM/CPU%d/Exit/Instr/DR/Write");
    317320        HWACCM_REG_COUNTER(&pVCpu->hwaccm.s.StatExitDRxRead,            "/HWACCM/CPU%d/Exit/Instr/DR/Read");
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r19679 r19697  
    616616    STAMCOUNTER             StatExitDRxWrite;
    617617    STAMCOUNTER             StatExitDRxRead;
     618    STAMCOUNTER             StatExitRdmsr;
     619    STAMCOUNTER             StatExitWrmsr;
    618620    STAMCOUNTER             StatExitCLTS;
    619621    STAMCOUNTER             StatExitHlt;
     622    STAMCOUNTER             StatExitMwait;
    620623    STAMCOUNTER             StatExitLMSW;
    621624    STAMCOUNTER             StatExitIOWrite;
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r19693 r19697  
    20252025    case SVM_EXIT_HLT:
    20262026        /** Check if external interrupts are pending; if so, don't switch back. */
     2027        STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatExitHlt);
    20272028        pCtx->rip++;    /* skip hlt */
    20282029        if (    pCtx->eflags.Bits.u1IF
     
    20352036    case SVM_EXIT_MWAIT_UNCOND:
    20362037        Log2(("SVM: mwait\n"));
     2038        STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatExitMwait);
    20372039        rc = EMInterpretMWait(pVM, pVCpu, CPUMCTX2CORE(pCtx));
    20382040        if (    rc == VINF_EM_HALT
     
    20842086
    20852087        /* Note: the intel manual claims there's a REX version of RDMSR that's slightly different, so we play safe by completely disassembling the instruction. */
     2088        STAM_COUNTER_INC((pVMCB->ctrl.u64ExitInfo1 == 0) ? &pVCpu->hwaccm.s.StatExitRdmsr : &pVCpu->hwaccm.s.StatExitWrmsr);
    20862089        Log(("SVM: %s\n", (pVMCB->ctrl.u64ExitInfo1 == 0) ? "rdmsr" : "wrmsr"));
    20872090        rc = EMInterpretInstruction(pVM, pVCpu, CPUMCTX2CORE(pCtx), 0, &cbSize);
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r19693 r19697  
    30033003        uint32_t cbSize;
    30043004
     3005        STAM_COUNTER_INC((exitReason == VMX_EXIT_RDMSR) ? &pVCpu->hwaccm.s.StatExitRdmsr : &pVCpu->hwaccm.s.StatExitWrmsr);
     3006
    30053007        /* Note: the intel manual claims there's a REX version of RDMSR that's slightly different, so we play safe by completely disassembling the instruction. */
    30063008        Log2(("VMX: %s\n", (exitReason == VMX_EXIT_RDMSR) ? "rdmsr" : "wrmsr"));
     
    33713373    case VMX_EXIT_HLT:                  /* 12 Guest software attempted to execute HLT. */
    33723374        /** Check if external interrupts are pending; if so, don't switch back. */
     3375        STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatExitHlt);
    33733376        pCtx->rip++;    /* skip hlt */
    33743377        if (    pCtx->eflags.Bits.u1IF
     
    33813384    case VMX_EXIT_MWAIT:                /* 36 Guest software executed MWAIT. */
    33823385        Log2(("VMX: mwait\n"));
     3386        STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatExitMwait);
    33833387        rc = EMInterpretMWait(pVM, pVCpu, CPUMCTX2CORE(pCtx));
    33843388        if (    rc == VINF_EM_HALT
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