[PATCH 0/6] powerpc64/bpf: Support tailcalls with subprogs & BPF exceptions

adubey at linux.ibm.com adubey at linux.ibm.com
Mon Jan 5 21:52:06 AEDT 2026


From: Abhishek Dubey <adubey at linux.ibm.com>

This patch series enables support for two BPF JIT features
on powerpc64. The first three patches target support for
tail calls with subprogram combinations. The third patch
includes an optimization in which NVRs are accommodated in
the stack save area of the trampoline frame. Implementation
details are provided in the commit messages.

The last three patches add support for BPF exceptions. An
architecture-specific stack walker is implemented to assist
with stack walk during exceptions. BPF selftest results and
implementation details are presented in the corresponding
commits.

Abhishek Dubey (6):
  powerpc64/bpf: Support tailcalls with subprogs
  powerpc64/bpf: Tailcall handling with trampolines
  powerpc/bpf: use BPF_PPC_STACK_SAVE to spill trampoline NVRs
  powerpc64/bpf: Add arch_bpf_stack_walk() for BPF JIT
  powerpc64/bpf: Support exceptions
  powerpc64/bpf: Additional NVR handling for bpf_throw

 arch/powerpc/net/bpf_jit.h        |  16 ++-
 arch/powerpc/net/bpf_jit_comp.c   |  90 +++++++++----
 arch/powerpc/net/bpf_jit_comp64.c | 214 ++++++++++++++++++++++++------
 3 files changed, 256 insertions(+), 64 deletions(-)

-- 
2.48.1



More information about the Linuxppc-dev mailing list