]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: Clean up IBRS functionality resident in common code
authorKanth Ghatraju <kanth.ghatraju@oracle.com>
Tue, 16 Jan 2018 21:03:57 +0000 (16:03 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Jan 2018 20:29:11 +0000 (15:29 -0500)
commitaea3b13bcc08c9ecb0546ccd0a48d6b5c54e0d6a
tree25a0595790df5570ded6621d954ed98150e7b4f7
parentf38c28f6be776a3fd79c9438f545a22f6189ad98
x86: Clean up IBRS functionality resident in common code

The IBRS and IBPB code and defines are resident in common code.
This patch moves them to x86 specific locations.

The patch also adds the command line options:
spectre_v2={on|off|auto}
nospectre_v2

on: unconditionally enable
off: unconditionally disable, no_spectre_v2, noibrs + noibpb
auto: default, on

Existing noibrs and noibpb will print a deprecated message

Orabug: 27353383
Signed-off-by: Kanth Ghatraju <kanth.ghatraju@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: John Haxby <john.haxby@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/spec_ctrl.h
arch/x86/kernel/cpu/bugs_64.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/scattered.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
include/linux/smp.h
kernel/smp.c
kernel/sysctl.c