Skip to content

Implement cpuv4 support for s390x

Ilya Leoshkevich bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyApplied 10/10
  2. v111 patches 18 repliesSuperseded 1 of 11 applied

Changes in v2 from the cover letter

- Redo Disable zero-extension for BPF_MEMSX as Puranjay and Alexei suggested.
- Drop the bpf_ct_insert_entry() patch, it went in via the bpf tree.
- Rebase, don't apply A-bs because there were fixed conflicts.

Patches in v2 All 10 applied

#Subject and filesSizeRepliesApplied
1/10bpf: Disable zero-extension for BPF_MEMSXkernel/bpf/verifier.c+1 -11 replyApplied
2/10selftests/bpf: Unmount the cgroup2 work directorytools/testing/selftests/bpf/cgroup_helpers.c+26 -70 repliesApplied
3/10selftests/bpf: Add big-endian support to the ldsx testtools/testing/selftests/bpf/progs/test_ldsx_insn.c tools/testing/selftests/bpf/progs/verifier_ldsx.c+90 -620 repliesApplied
4/10s390/bpf: Implement BPF_MOV | BPF_X with sign-extensionarch/s390/net/bpf_jit_comp.c+40 -80 repliesApplied
5/10s390/bpf: Implement BPF_MEMSXarch/s390/net/bpf_jit_comp.c+27 -50 repliesApplied
6/10s390/bpf: Implement unconditional byte swaparch/s390/net/bpf_jit_comp.c+1 -00 repliesApplied
7/10s390/bpf: Implement unconditional jump with 32-bit offsetarch/s390/net/bpf_jit_comp.c+9 -30 repliesApplied
8/10s390/bpf: Implement signed divisionarch/s390/net/bpf_jit_comp.c+125 -470 repliesApplied
9/10selftests/bpf: Enable the cpuv4 tests for s390xtools/testing/selftests/bpf/progs/test_ldsx_insn.c tools/testing/selftests/bpf/progs/verifier_bswap.c tools/testing/selftests/bpf/progs/verifier_gotol.c +3 more+12 -60 repliesApplied
10/10selftests/bpf: Trim DENYLIST.s390xtools/testing/selftests/bpf/DENYLIST.s390x+0 -250 repliesApplied

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchPuranjay Mohan
1/10R-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH bpf-next v2 00/10] Implement cpuv4 support for s390x

v1: https://lore.kernel.org/bpf/[email protected]/
v1 -> v2:
- Redo Disable zero-extension for BPF_MEMSX as Puranjay and Alexei suggested.
- Drop the bpf_ct_insert_entry() patch, it went in via the bpf tree.
- Rebase, don't apply A-bs because there were fixed conflicts.

Hi,

This series adds the cpuv4 support to the s390x eBPF JIT. Patches 1-3 are preliminary bugfixes.
Patches 4-8 implement the new instructions. Patches 9-10 enable the tests.

Best regards,
Ilya

Ilya Leoshkevich (10):
bpf: Disable zero-extension for BPF_MEMSX selftests/bpf: Unmount the cgroup2 work directory selftests/bpf: Add big-endian support to the ldsx test s390/bpf: Implement BPF_MOV | BPF_X with sign-extension s390/bpf: Implement BPF_MEMSX
s390/bpf: Implement unconditional byte swap s390/bpf: Implement unconditional jump with 32-bit offset s390/bpf: Implement signed division selftests/bpf: Enable the cpuv4 tests for s390x selftests/bpf: Trim DENYLIST.s390x

 arch/s390/net/bpf_jit_comp.c                  | 265 +++++++++++++-----
 kernel/bpf/verifier.c                         |   2 +-
 tools/testing/selftests/bpf/DENYLIST.s390x    |  25 --
 tools/testing/selftests/bpf/cgroup_helpers.c  |  33 ++-
 .../selftests/bpf/progs/test_ldsx_insn.c      |   9 +-
 .../selftests/bpf/progs/verifier_bswap.c      |   3 +-
 .../selftests/bpf/progs/verifier_gotol.c      |   3 +-
 .../selftests/bpf/progs/verifier_ldsx.c       | 149 ++++++----
 .../selftests/bpf/progs/verifier_movsx.c      |   3 +-
 .../selftests/bpf/progs/verifier_sdiv.c       |   3 +-
 10 files changed, 331 insertions(+), 164 deletions(-)
Signature · 1 line
2.41.0