Skip to content

s390/bpf: remove JITed image size limitations

Ilya Leoshkevich bpf 1 version Applied

Status from this message: Applied. Thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6s390/bpf: use relative long branchesarch/s390/net/bpf_jit_comp.c+126 -320 replies
2/6s390/bpf: align literal pool entriesarch/s390/net/bpf_jit_comp.c+24 -130 replies
3/6s390/bpf: load literal pool register using larlarch/s390/net/bpf_jit_comp.c+19 -30 replies
4/6s390/bpf: use lgrl instead of lg where possiblearch/s390/net/bpf_jit_comp.c+20 -120 replies
5/6s390/bpf: use lg(f)rl when long displacement cannot be usedarch/s390/net/bpf_jit_comp.c+81 -150 replies
6/6s390/bpf: remove JITed image size limitationsarch/s390/net/bpf_jit_comp.c+0 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bpf-next 0/6] s390/bpf: remove JITed image size limitations

This patch series introduces usage of relative long jumps and loads in order to lift 64/512k size limits on JITed BPF programs on s390.

Patch 1 introduces long relative branches.
Patch 2 changes the way literal pool is arranged in order to be compatible with long relative loads.
Patch 3 changes the way literal pool base register is loaded for large programs.
Patch 4 replaces regular loads with long relative loads where they are totally superior.
Patch 5 introduces long relative loads as an alternative way to load constants in large programs. Regular loads are kept and still used for small programs.
Patch 6 removes the size limit check.

Ilya Leoshkevich (6):
s390/bpf: use relative long branches
s390/bpf: align literal pool entries
s390/bpf: load literal pool register using larl s390/bpf: use lgrl instead of lg where possible s390/bpf: use lg(f)rl when long displacement cannot be used s390/bpf: remove JITed image size limitations

 arch/s390/net/bpf_jit_comp.c | 348 +++++++++++++++++++++++++++--------
 1 file changed, 268 insertions(+), 80 deletions(-)
Signature · 1 line
2.23.0