VirtualBox

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


Ignore:
Timestamp:
Oct 21, 2013 11:09:42 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Fix MSR_TSC_AUX, restore host MSR.

File:
1 edited

Legend:

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

    r49207 r49209  
    26072607    }
    26082608# endif
     2609
     2610    /* Host TSC AUX MSR must be restored since we always load/store guest TSC AUX MSR. */
     2611    if (pVCpu->hm.s.vmx.u32ProcCtls2 & VMX_VMCS_CTRL_PROC_EXEC2_RDTSCP)
     2612    {
     2613        pHostMsr->u32Msr      = MSR_K8_TSC_AUX;
     2614        pHostMsr->u32Reserved = 0;
     2615        pHostMsr->u64Value    = ASMRdMsr(MSR_K8_TSC_AUX);
     2616        pHostMsr++; cHostMsrs++;
     2617    }
    26092618
    26102619    /* Shouldn't ever happen but there -is- a number. We're well within the recommended 512. */
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