linux-stable/tools/arch
Peter Zijlstra (Intel) a771511caa x86/speculation: Rename RETPOLINE_AMD to RETPOLINE_LFENCE
commit d45476d983 upstream.

The RETPOLINE_AMD name is unfortunate since it isn't necessarily
AMD only, in fact Hygon also uses it. Furthermore it will likely be
sufficient for some Intel processors. Therefore rename the thing to
RETPOLINE_LFENCE to better describe what it is.

Add the spectre_v2=retpoline,lfence option as an alias to
spectre_v2=retpoline,amd to preserve existing setups. However, the output
of /sys/devices/system/cpu/vulnerabilities/spectre_v2 will be changed.

  [ bp: Fix typos, massage. ]

Co-developed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
[fllinden@amazon.com: backported to 4.19]
Signed-off-by: Frank van der Linden <fllinden@amazon.com>
[bwh: Backported to 4.9: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-11 10:03:30 +01:00
..
alpha/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
arc/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
arm/include perf/tools: header file sync up 2018-06-05 10:28:58 +02:00
arm64/include perf/tools: header file sync up 2018-06-05 10:28:58 +02:00
frv/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
h8300/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
hexagon/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
ia64/include ia64: tools: remove duplicate definition of ia64_mf() on ia64 2021-04-28 12:07:17 +02:00
m32r/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
microblaze/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
mips/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
mn10300/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
parisc/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
powerpc/include perf/tools: header file sync up 2018-06-05 10:28:58 +02:00
s390/include perf/tools: header file sync up 2018-06-05 10:28:58 +02:00
score/include/uapi/asm tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
sh/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
sparc/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
tile/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00
x86 x86/speculation: Rename RETPOLINE_AMD to RETPOLINE_LFENCE 2022-03-11 10:03:30 +01:00
xtensa/include tools include: Add mman macros needed by perf for all arch 2016-09-19 11:30:56 -03:00