riscv, bpf: Add bpf trampoline support for RV64
authorPu Lehui <pulehui@huawei.com>
Wed, 15 Feb 2023 13:52:05 +0000 (21:52 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 17 Feb 2023 20:45:30 +0000 (21:45 +0100)
commit49b5e77ae3e214acff4728595b4ac7bf776693ca
tree8d8439f133914a38aa7aa4b7436726e9ca76ecba
parent596f2e6f9cf41436a5512a3f278c86da5c5598fb
riscv, bpf: Add bpf trampoline support for RV64

BPF trampoline is the critical infrastructure of the BPF subsystem, acting
as a mediator between kernel functions and BPF programs. Numerous important
features, such as using BPF program for zero overhead kernel introspection,
rely on this key component. We can't wait to support bpf trampoline on RV64.
The related tests have passed, as well as the test_verifier with no new
failure ceses.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Björn Töpel <bjorn@rivosinc.com>
Acked-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/bpf/20230215135205.1411105-5-pulehui@huaweicloud.com
arch/riscv/net/bpf_jit_comp64.c