VirtualBox

Changeset 75109 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 26, 2018 3:48:34 PM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:9180 Adjust TSC offset.

File:
1 edited

Legend:

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

    r74101 r75109  
    28362836#ifndef IN_RC
    28372837    PCCPUMCTX pCtx = &pVCpu->cpum.s.Guest;
     2838    if (CPUMIsGuestInVmxNonRootMode(pCtx))
     2839    {
     2840        PCVMXVVMCS pVmcs = pCtx->hwvirt.vmx.CTX_SUFF(pVmcs);
     2841        if (pVmcs->u32ProcCtls & VMX_PROC_CTLS_USE_TSC_OFFSETTING)
     2842            return uTicks + pVmcs->u64TscOffset.u;
     2843        return uTicks;
     2844    }
     2845
    28382846    if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    28392847    {
     
    28452853        return HMSvmNstGstApplyTscOffset(pVCpu, uTicks);
    28462854    }
    2847 
    2848     /** @todo Intel. */
    28492855#else
    28502856    RT_NOREF(pVCpu);
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