]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
x86/cpufeatures: Add X86_FEATURE_RDS
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Sat, 28 Apr 2018 20:34:17 +0000 (22:34 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 16 May 2018 11:52:20 +0000 (13:52 +0200)
Add the CPU feature bit CPUID.7.0.EDX[31] which indicates whether the CPU
supports Reduced Data Speculation.

[ tglx: Split it out from a later patch ]

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
CVE-2018-3639 (x86)

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/include/asm/cpufeatures.h

index 8fdae78d9d8577c846e06f3e08ab7d0383adf078..fa7656171ef7ec90f7e8e1c4e44e950238174999 100644 (file)
 #define X86_FEATURE_SPEC_CTRL          (18*32+26) /* "" Speculation Control (IBRS + IBPB) */
 #define X86_FEATURE_INTEL_STIBP                (18*32+27) /* "" Single Thread Indirect Branch Predictors */
 #define X86_FEATURE_ARCH_CAPABILITIES  (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */
+#define X86_FEATURE_RDS                        (18*32+31) /* Reduced Data Speculation */
 
 /*
  * BUG word(s)