]> Git Repo - linux.git/commit
x86/speculation: Use synthetic bits for IBRS/IBPB/STIBP
authorBorislav Petkov <[email protected]>
Wed, 2 May 2018 16:15:14 +0000 (18:15 +0200)
committerThomas Gleixner <[email protected]>
Thu, 17 May 2018 15:09:16 +0000 (17:09 +0200)
commite7c587da125291db39ddf1f49b18e5970adbac17
tree6c8ca082d4e34cfff4b8f06a3e926be837832c12
parent15e6c22fd8e5a42c5ed6d487b7c9fe44c2517765
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

  c65732e4f721 ("x86/cpu: Restore CPUID_8000_0008_EBX reload")

talks about don't happen anymore.

Signed-off-by: Borislav Petkov <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Tested-by: Jörg Otte <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/common.c
arch/x86/kvm/cpuid.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
This page took 0.056325 seconds and 4 git commands to generate.