aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/amd.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r--arch/x86/kernel/cpu/amd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 60e5497681f5..813d29d00a17 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -525,6 +525,13 @@ static void early_init_amd(struct cpuinfo_x86 *c)
525 } 525 }
526#endif 526#endif
527 527
528 /*
529 * This is only needed to tell the kernel whether to use VMCALL
530 * and VMMCALL. VMMCALL is never executed except under virt, so
531 * we can set it unconditionally.
532 */
533 set_cpu_cap(c, X86_FEATURE_VMMCALL);
534
528 /* F16h erratum 793, CVE-2013-6885 */ 535 /* F16h erratum 793, CVE-2013-6885 */
529 if (c->x86 == 0x16 && c->x86_model <= 0xf) 536 if (c->x86 == 0x16 && c->x86_model <= 0xf)
530 msr_set_bit(MSR_AMD64_LS_CFG, 15); 537 msr_set_bit(MSR_AMD64_LS_CFG, 15);