Changeset 87491 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jan 30, 2021 1:15:50 AM (4 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0A.asm
r87490 r87491 969 969 ALIGNCODE(8) 970 970 .write_host_rip: 971 %ifdef VBOX_WITH_STATISTICS 972 inc qword [rsi + VMCPU.hm + HMCPU.StatVmxWriteHostRip] 973 %endif 971 974 mov [r9 + VMXVMCSINFO.uHostRip], rcx 972 975 mov eax, VMX_VMCS_HOST_RIP ;; @todo It is only strictly necessary to write VMX_VMCS_HOST_RIP when … … 979 982 ALIGNCODE(8) 980 983 .write_host_rsp: 984 %ifdef VBOX_WITH_STATISTICS 985 inc qword [rsi + VMCPU.hm + HMCPU.StatVmxWriteHostRsp] 986 %endif 981 987 mov [r9 + VMXVMCSINFO.uHostRsp], rsp 982 988 mov eax, VMX_VMCS_HOST_RSP -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r87490 r87491 6880 6880 pVCpu->cpum.GstCtx.fExtrn |= HMVMX_CPUMCTX_EXTRN_ALL | CPUMCTX_EXTRN_KEEPER_HM; 6881 6881 6882 /** @todo Add stats for VMRESUME vs VMLAUNCH. */6883 6882 PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo; 6884 6883 bool const fResumeVM = RT_BOOL(pVmcsInfo->fVmcsState & VMX_V_VMCS_LAUNCH_STATE_LAUNCHED); 6884 #ifdef VBOX_WITH_STATISTICS 6885 if (fResumeVM) 6886 STAM_COUNTER_INC(&pVCpu->hm.s.StatVmxVmResume); 6887 else 6888 STAM_COUNTER_INC(&pVCpu->hm.s.StatVmxVmLaunch); 6889 #endif 6885 6890 int rc = pVCpu->hmr0.s.vmx.pfnStartVm(pVmcsInfo, pVCpu, fResumeVM); 6886 6891 AssertMsg(rc <= VINF_SUCCESS, ("%Rrc\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.