[PATCH bpf-next 0/7] Support cpu v4 instructions for arm64

Xu Kuohai
2023-08-15T15:21:12Z

This series adds arm64 support for cpu v4 instructions [1].

[1] https://lore.kernel.org/all/20230728011143.3710005-1-yonghong.song@linux.dev/

Xu Kuohai (7):
arm64: insn: Add encoders for LDRSB/LDRSH/LDRSW
bpf, arm64: Support sign-extension load instructions
bpf, arm64: Support sign-extension mov instructions
bpf, arm64: Support unconditional bswap
bpf, arm64: Support 32-bit offset jmp instruction
bpf, arm64: Support signed div/mod instructions
selftests/bpf: Enable cpu v4 tests for arm64

arch/arm64/include/asm/insn.h | 4 +
arch/arm64/lib/insn.c | 6 ++
arch/arm64/net/bpf_jit.h | 12 +++
arch/arm64/net/bpf_jit_comp.c | 91 +++++++++++++++----
.../selftests/bpf/progs/test_ldsx_insn.c | 2 +-
.../selftests/bpf/progs/verifier_bswap.c | 2 +-
.../selftests/bpf/progs/verifier_gotol.c | 2 +-
.../selftests/bpf/progs/verifier_ldsx.c | 2 +-
.../selftests/bpf/progs/verifier_movsx.c | 2 +-
.../selftests/bpf/progs/verifier_sdiv.c | 2 +-
10 files changed, 103 insertions(+), 22 deletions(-)

--
2.30.2