Changeset 93574 in vbox for trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
- Timestamp:
- Feb 3, 2022 11:27:27 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149709
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r93557 r93574 59 59 } while (0) 60 60 61 # ifdef VBOX_WITH_NESTED_HWVIRT_SVM 62 # define HMSVM_NESTED_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { \ 63 STAM_COUNTER_INC(&pVCpu->hm.s.StatExitAll); \ 61 # define HMSVM_DEBUG_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { \ 62 STAM_COUNTER_INC(&pVCpu->hm.s.StatDebugExitAll); \ 63 if ((u64ExitCode) == SVM_EXIT_NPF) \ 64 STAM_COUNTER_INC(&pVCpu->hm.s.StatExitReasonNpf); \ 65 else \ 66 STAM_COUNTER_INC(&pVCpu->hm.s.aStatExitReason[(u64ExitCode) & MASK_EXITREASON_STAT]); \ 67 } while (0) 68 69 # define HMSVM_NESTED_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { \ 64 70 STAM_COUNTER_INC(&pVCpu->hm.s.StatNestedExitAll); \ 65 71 if ((u64ExitCode) == SVM_EXIT_NPF) \ … … 68 74 STAM_COUNTER_INC(&pVCpu->hm.s.aStatNestedExitReason[(u64ExitCode) & MASK_EXITREASON_STAT]); \ 69 75 } while (0) 70 # endif71 76 #else 72 77 # define HMSVM_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { } while (0) 73 # ifdef VBOX_WITH_NESTED_HWVIRT_SVM 74 # define HMSVM_NESTED_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { } while (0) 75 # endif 78 # define HMSVM_DEBUG_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { } while (0) 79 # define HMSVM_NESTED_EXITCODE_STAM_COUNTER_INC(u64ExitCode) do { } while (0) 76 80 #endif /* !VBOX_WITH_STATISTICS */ 77 81 … … 6440 6444 6441 6445 /* Handle the #VMEXIT. */ 6442 HMSVM_ EXITCODE_STAM_COUNTER_INC(SvmTransient.u64ExitCode);6446 HMSVM_DEBUG_EXITCODE_STAM_COUNTER_INC(SvmTransient.u64ExitCode); 6443 6447 STAM_PROFILE_ADV_STOP_START(&pVCpu->hm.s.StatPreExit, &pVCpu->hm.s.StatExitHandling, x); 6444 6448 VBOXVMM_R0_HMSVM_VMEXIT(pVCpu, pCtx, SvmTransient.u64ExitCode, pVCpu->hmr0.s.svm.pVmcb);
Note:
See TracChangeset
for help on using the changeset viewer.