VirtualBox

Changeset 42613 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 6, 2012 10:51:26 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
79801
Message:

VMM/VMMR3/CPUM: CFGM option for exposing CmpXchg16b if the host supports it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r42505 r42613  
    853853             &pCPUM->GuestCpuIdDef.ecx, &pCPUM->GuestCpuIdDef.edx);
    854854
     855    /** @cfgm{/CPUM/CMPXCHG16B, boolean, false}
     856     * Expose CMPXCHG16B to the guest if supported by the host.
     857     */
     858    bool fCmpXchg16b;
     859    rc = CFGMR3QueryBoolDef(pCpumCfg, "CMPXCHG16B", &fCmpXchg16b, false); AssertRCReturn(rc, rc);
    855860
    856861    /* Cpuid 1 & 0x80000001:
     
    901906                                    | X86_CPUID_FEATURE_ECX_SSSE3
    902907                                  //| X86_CPUID_FEATURE_ECX_CNTXID - no L1 context id (MSR++).
    903                                   //| X86_CPUID_FEATURE_ECX_CX16  - no cmpxchg16b
     908                                    | (fCmpXchg16b ? X86_CPUID_FEATURE_ECX_CX16 : 0)
    904909                                  /* ECX Bit 14 - xTPR Update Control. Processor supports changing IA32_MISC_ENABLES[bit 23]. */
    905910                                  //| X86_CPUID_FEATURE_ECX_TPRUPDATE
     
    914919        PORTABLE_DISABLE_FEATURE_BIT(1, Std[1].ecx, SSSE3, X86_CPUID_FEATURE_ECX_SSSE3);
    915920        PORTABLE_DISABLE_FEATURE_BIT(1, Std[1].ecx, SSE3,  X86_CPUID_FEATURE_ECX_SSE3);
     921        PORTABLE_DISABLE_FEATURE_BIT(1, Std[1].ecx, CX16,  X86_CPUID_FEATURE_ECX_CX16);
    916922        PORTABLE_DISABLE_FEATURE_BIT(2, Std[1].edx, SSE2,  X86_CPUID_FEATURE_EDX_SSE2);
    917923        PORTABLE_DISABLE_FEATURE_BIT(3, Std[1].edx, SSE,   X86_CPUID_FEATURE_EDX_SSE);
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