]> www.infradead.org Git - users/jedix/linux-maple.git/commit
retpoline: set IBRS and IBPB in use only on the boot CPU call to init_scattered_cpuid...
authorChuck Anderson <chuck.anderson@oracle.com>
Mon, 26 Feb 2018 09:40:58 +0000 (01:40 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 3 Mar 2018 01:58:46 +0000 (17:58 -0800)
commit5560f91691771eb9ce4a5f94f78c6e002286e7d5
tree106dacf1cffc208a4dbb9a47773f8f885b631065
parentd550e0c92e1987991428a4233e91a84f7bccbe03
retpoline: set IBRS and IBPB in use only on the boot CPU call to init_scattered_cpuid_features()

Setting IBRS and IBPB in use is a system wide issue, not a per-CPU
issue.  Set them only on the boot CPU's call to
init_scattered_cpuid_features().

Orabug: 27625404
Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Conflicts:
arch/x86/kernel/cpu/scattered.c
(merged with be596ab27 ("x86/speculation: Use IBRS if available before
 calling into firmware"))
arch/x86/kernel/cpu/scattered.c