VirtualBox

Changeset 87633 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Feb 5, 2021 9:37:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142669
Message:

VMM/TM,VMM/HMVMX: Try avoid calling TMCpuTickGetDeadlineAndTscOffset as it is expensive. Current approach is a bit erratic wrt CPUID benchmark results, but it's generally better than before.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/HMInternal.h

    r87606 r87633  
    13211321    STAMCOUNTER             StatVmxCheckPmOk;
    13221322
     1323    STAMCOUNTER             StatVmxPreemptionRecalcingDeadline;
     1324    STAMCOUNTER             StatVmxPreemptionRecalcingDeadlineExpired;
     1325    STAMCOUNTER             StatVmxPreemptionReusingDeadline;
     1326    STAMCOUNTER             StatVmxPreemptionReusingDeadlineExpired;
     1327
    13231328#ifdef VBOX_WITH_STATISTICS
    13241329    R3PTRTYPE(PSTAMCOUNTER) paStatExitReason;
     
    13891394        /** Ring-0 pointer to the hardware-assisted VMX execution function. */
    13901395        PFNHMVMXSTARTVM             pfnStartVm;
     1396        /** Absolute TSC deadline. */
     1397        uint64_t                    uTscDeadline;
     1398        /** The deadline version number. */
     1399        uint64_t                    uTscDeadlineVersion;
    13911400
    13921401        /** @name Guest information.
  • trunk/src/VBox/VMM/include/HMInternal.mac

    r87522 r87633  
    182182struc HMR0CPUVMX
    183183    .pfnStartVm                     RTR0PTR_RES  1
     184    .uTscDeadline                   resq    1
     185    .uTscDeadlineVersion            resq    1
     186
    184187
    185188    .VmcsInfo                       resb    VMXVMCSINFO_size
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