]> xenbits.xensource.com Git - xen.git/commitdiff
x86: do not store VIA/Cyrix/Centaur CPU features
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Feb 2016 15:41:14 +0000 (16:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Feb 2016 15:41:14 +0000 (16:41 +0100)
Nothing uses them.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/centaur.c
xen/include/asm-x86/cpufeature.h

index c0ac117be224a7b819ba6283fe945a03ccc9aef9..b137d555414bd70965c03de81486d36aafd50d0d 100644 (file)
@@ -38,9 +38,6 @@ static void init_c3(struct cpuinfo_x86 *c)
                        wrmsrl(MSR_VIA_RNG, msr_content | RNG_ENABLE);
                        printk(KERN_INFO "CPU: Enabled h/w RNG\n");
                }
-
-               c->x86_capability[cpufeat_word(X86_FEATURE_XSTORE)]
-                    = cpuid_edx(0xC0000001);
        }
 
        if (c->x86 == 0x6 && c->x86_model >= 0xf) {
index 65830397e2b522c802493fb173aeb446015e53a0..e7e369b3137f0b3b9c292b99e3081b61b21b7f77 100644 (file)
 #define X86_FEATURE_RDRAND     (4*32+30) /* Digital Random Number Generator */
 #define X86_FEATURE_HYPERVISOR (4*32+31) /* Running under some hypervisor */
 
-/* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
-#define X86_FEATURE_XSTORE     (5*32+ 2) /* on-CPU RNG present (xstore insn) */
-#define X86_FEATURE_XSTORE_EN  (5*32+ 3) /* on-CPU RNG enabled */
-#define X86_FEATURE_XCRYPT     (5*32+ 6) /* on-CPU crypto (xcrypt insn) */
-#define X86_FEATURE_XCRYPT_EN  (5*32+ 7) /* on-CPU crypto enabled */
-#define X86_FEATURE_ACE2       (5*32+ 8) /* Advanced Cryptography Engine v2 */
-#define X86_FEATURE_ACE2_EN    (5*32+ 9) /* ACE v2 enabled */
-#define X86_FEATURE_PHE                (5*32+ 10) /* PadLock Hash Engine */
-#define X86_FEATURE_PHE_EN     (5*32+ 11) /* PHE enabled */
-#define X86_FEATURE_PMM                (5*32+ 12) /* PadLock Montgomery Multiplier */
-#define X86_FEATURE_PMM_EN     (5*32+ 13) /* PMM enabled */
+/* UNUSED, word 5 */
 
 /* More extended AMD flags: CPUID level 0x80000001, ecx, word 6 */
 #define X86_FEATURE_LAHF_LM     (6*32+ 0) /* LAHF/SAHF in long mode */