VirtualBox

Changeset 79463 in vbox


Ignore:
Timestamp:
Jul 2, 2019 9:56:09 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131720
Message:

VMM/HMSVMR0: Nested SVM: bugref:7243 Added some missing exit-to-ring3 STAM counters.

File:
1 edited

Legend:

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

    r79374 r79463  
    6262#  define HMSVM_NESTED_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { \
    6363        STAM_COUNTER_INC(&pVCpu->hm.s.StatExitAll); \
     64        STAM_COUNTER_INC(&pVCpu->hm.s.StatNestedExitAll); \
    6465        if ((u64ExitCode) == SVM_EXIT_NPF) \
    6566            STAM_COUNTER_INC(&pVCpu->hm.s.StatNestedExitReasonNpf); \
     
    42604261            || VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_REQUEST))
    42614262        {
     4263            STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchVmReq);
    42624264            Log4Func(("Pending VM request forcing us back to ring-3\n"));
    42634265            return VINF_EM_PENDING_REQUEST;
     
    42674269        if (VM_FF_IS_SET(pVM, VM_FF_PGM_POOL_FLUSH_PENDING))
    42684270        {
     4271            STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchPgmPoolFlush);
    42694272            Log4Func(("PGM pool flush pending forcing us back to ring-3\n"));
    42704273            return VINF_PGM_POOL_FLUSH_PENDING;
     
    42744277        if (VM_FF_IS_SET(pVM, VM_FF_PDM_DMA))
    42754278        {
     4279            STAM_COUNTER_INC(&pVCpu->hm.s.StatSwitchDma);
    42764280            Log4Func(("Pending DMA request forcing us back to ring-3\n"));
    42774281            return VINF_EM_RAW_TO_R3;
     
    50675071            break;
    50685072        }
     5073        /** @todo NSTSVM: Add stat for StatSwitchNstGstVmexit. Re-arrange the above code to
     5074         *        be accurate when doing so, see the corresponding VT-x code. */
    50695075
    50705076        /** @todo handle single-stepping   */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette