VirtualBox

Changeset 87491 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jan 30, 2021 1:15:50 AM (4 years ago)
Author:
vboxsync
Message:

VMM/HMVMX: Some stats.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMR0A.asm

    r87490 r87491  
    969969ALIGNCODE(8)
    970970.write_host_rip:
     971 %ifdef VBOX_WITH_STATISTICS
     972        inc     qword [rsi + VMCPU.hm + HMCPU.StatVmxWriteHostRip]
     973 %endif
    971974        mov     [r9 + VMXVMCSINFO.uHostRip], rcx
    972975        mov     eax, VMX_VMCS_HOST_RIP                      ;; @todo It is only strictly necessary to write VMX_VMCS_HOST_RIP when
     
    979982ALIGNCODE(8)
    980983.write_host_rsp:
     984 %ifdef VBOX_WITH_STATISTICS
     985        inc     qword [rsi + VMCPU.hm + HMCPU.StatVmxWriteHostRsp]
     986 %endif
    981987        mov     [r9 + VMXVMCSINFO.uHostRsp], rsp
    982988        mov     eax, VMX_VMCS_HOST_RSP
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r87490 r87491  
    68806880    pVCpu->cpum.GstCtx.fExtrn |= HMVMX_CPUMCTX_EXTRN_ALL | CPUMCTX_EXTRN_KEEPER_HM;
    68816881
    6882     /** @todo Add stats for VMRESUME vs VMLAUNCH. */
    68836882    PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo;
    68846883    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
    68856890    int rc = pVCpu->hmr0.s.vmx.pfnStartVm(pVmcsInfo, pVCpu, fResumeVM);
    68866891    AssertMsg(rc <= VINF_SUCCESS, ("%Rrc\n", rc));
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