VirtualBox

Changeset 10655 in vbox


Ignore:
Timestamp:
Jul 15, 2008 1:05:08 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33365
Message:

Guest MSR_K6_EFER_FFXSR value is not relevant. Always manually save/restore.

File:
1 edited

Legend:

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

    r10647 r10655  
    168168     *
    169169     * MSR_K6_EFER_FFXSR changes the behaviour of fxsave and fxrstore: the XMM state isn't saved/restored
    170      *
    171      * If the guest uses the MSR_K6_EFER_FFXSR as well, then it has to manually restore the XMM state.
    172      * In that case we don't care.
    173      *
    174      * We would end up saving/restoring too much if the guest has it enabled, but the host hasn't.
    175      */
    176     if (    (pVM->cpum.s.aGuestCpuIdExt[1].edx & X86_CPUID_AMD_FEATURE_EDX_FFXSR) /* 0x80000001 */
    177         &&  !(pCtx->msrEFER & MSR_K6_EFER_FFXSR))
     170     */
     171    if (pVM->cpum.s.aGuestCpuIdExt[1].edx & X86_CPUID_AMD_FEATURE_EDX_FFXSR /* cpuid 0x80000001 */)
    178172    {
    179173        /* @todo Do we really need to read this every time?? The host could change this on the fly though. */
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