VirtualBox

Changeset 70057 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Dec 11, 2017 2:40:43 PM (7 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested hw.virt: Apply nested-guest TSC offset

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h

    r69111 r70057  
    58075807     */
    58085808    uint64_t uTicks = TMCpuTickGet(pVCpu);
     5809#ifdef VBOX_WITH_NESTED_HWVIRT
     5810    uTicks = CPUMApplyNestedGuestTscOffset(pVCpu, uTicks);
     5811#endif
    58095812    pCtx->rax = RT_LO_U32(uTicks);
    58105813    pCtx->rdx = RT_HI_U32(uTicks);
     
    58555858
    58565859        uint64_t uTicks = TMCpuTickGet(pVCpu);
     5860#ifdef VBOX_WITH_NESTED_HWVIRT
     5861        uTicks = CPUMApplyNestedGuestTscOffset(pVCpu, uTicks);
     5862#endif
    58575863        pCtx->rax = RT_LO_U32(uTicks);
    58585864        pCtx->rdx = RT_HI_U32(uTicks);
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplSvmInstr.cpp.h

    r70001 r70057  
    546546            PGMFlushTLB(pVCpu, pVmcbNstGst->u64CR3, true /* fGlobal */);
    547547#endif
    548 
    549         /** @todo @bugref{7243}: SVM TSC offset, see tmCpuTickGetInternal. */
    550548
    551549        /*
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