x86,bugs: Unconditionally allow spectre_v2=retpoline,amd
authorPeter Zijlstra <peterz@infradead.org>
Tue, 26 Oct 2021 12:01:46 +0000 (14:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2022 11:22:31 +0000 (12:22 +0100)
commite94d490a1ad681bd55a2fb37c318fba90dce9314
tree4fd53932d3b44d0fc1889c9c22505d3fc86047d6
parent668c821321b46b6724e80c2840a46c5212e32d2c
x86,bugs: Unconditionally allow spectre_v2=retpoline,amd

commit f8a66d608a3e471e1202778c2a36cbdc96bae73b upstream.

Currently Linux prevents usage of retpoline,amd on !AMD hardware, this
is unfriendly and gets in the way of testing. Remove this restriction.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20211026120310.487348118@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/bugs.c