linux_dsm_epyc7002/arch/x86/net
Maciej Fijalkowski 0d4ddce300 bpf, x64: use %rcx instead of %rax for tail call retpolines
Currently, %rax is used to store the jump target when BPF program is
emitting the retpoline instructions that are handling the indirect
tailcall.

There is a plan to use %rax for different purpose, which is storing the
tail call counter. In order to preserve this value across the tailcalls,
adjust the BPF indirect tailcalls so that the target program will reside
in %rcx and teach the retpoline instructions about new location of jump
target.

Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2020-09-17 12:59:31 -07:00
..
bpf_jit_comp32.c bpf, i386: Remove unneeded conversion to bool 2020-05-07 16:29:14 +02:00
bpf_jit_comp.c bpf, x64: use %rcx instead of %rax for tail call retpolines 2020-09-17 12:59:31 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00