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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Xu Kuohai <xukuohai@xxxxxxxxxx>

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

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

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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux