On Sun, Mar 12, 2023 at 11:24 AM Puranjay Mohan <puranjay12@xxxxxxxxx> wrote: > > Hi, > > On Fri, Mar 10, 2023 at 3:03 PM Puranjay Mohan <puranjay12@xxxxxxxxx> wrote: > > > > Hi, > > I am starting this thread to know if someone is implementing the BPF > > dispatcher for ARM64 and if not, what would be needed to make this > > happen. > > > > The basic infra + x86 specific code was introduced in [1] by Björn Töpel. > > > > To make BPF dispatcher work on ARM64, the > > arch_prepare_bpf_dispatcher() has to be implemented in > > arch/arm64/net/bpf_jit_comp.c. > > I realized that after [2] the BPF dispatcher is using the > bpf_prog_pack allocator. > > We need to implement bpf_arch_text_copy() and bpf_arch_text_invalidate() to > enable the bpf_prog_pack allocator for ARM64. Then we can use it in > the JIT as well. You probably want to sync up with Florent. He is working on arm64 trampoline support. Your works don't conflict as far as I can tell, but still good to align.