x86/speculation: Use synthetic bits for IBRS/IBPB/STIBP
Intel and AMD have different CPUID bits hence for those use synthetic bits which get set on the respective vendor's in init_speculation_control(). So that debacles like what the commit message of c65732e4 ("x86/cpu: Restore CPUID_8000_0008_EBX reload") talks about don't happen anymore. Signed-off-by:Borislav Petkov <bp@suse.de> Signed-off-by:
Thomas Gleixner <tglx@linutronix.de> Reviewed-by:
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Tested-by:
Jörg Otte <jrg.otte@gmail.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Link: https://lkml.kernel.org/r/20180504161815.GG9257@pd.tnic
Showing
- arch/x86/include/asm/cpufeatures.h 6 additions, 4 deletionsarch/x86/include/asm/cpufeatures.h
- arch/x86/kernel/cpu/common.c 10 additions, 4 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kvm/cpuid.c 5 additions, 5 deletionsarch/x86/kvm/cpuid.c
- arch/x86/kvm/svm.c 3 additions, 3 deletionsarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 2 additions, 7 deletionsarch/x86/kvm/vmx.c
Loading
Please register or sign in to comment