VirtualBox

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


Ignore:
Timestamp:
Feb 13, 2021 1:57:20 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142803
Message:

VMM: Eliminated one ASMReadTSC in TMNotifyEndOfExecution. Both VT-x and AMD-V has the TSC value handy. bugref:9941

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

Legend:

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

    r87606 r87751  
    43824382    STAM_PROFILE_ADV_STOP_START(&pVCpu->hm.s.StatInGC, &pVCpu->hm.s.StatPreExit, x);
    43834383    PVMCC pVM = pVCpu->CTX_SUFF(pVM);
    4384     TMNotifyEndOfExecution(pVM, pVCpu);                         /* Notify TM that the guest is no longer running. */
     4384    TMNotifyEndOfExecution(pVM, pVCpu, uHostTsc);               /* Notify TM that the guest is no longer running. */
    43854385    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_HM);
    43864386
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r87690 r87751  
    1117711177
    1117811178    STAM_PROFILE_ADV_STOP_START(&pVCpu->hm.s.StatInGC, &pVCpu->hm.s.StatPreExit, x);
    11179     TMNotifyEndOfExecution(pVCpu->CTX_SUFF(pVM), pVCpu);                /* Notify TM that the guest is no longer running. */
     11179    TMNotifyEndOfExecution(pVCpu->CTX_SUFF(pVM), pVCpu, uHostTsc);      /* Notify TM that the guest is no longer running. */
    1118011180    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_HM);
    1118111181
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