powerpc/bpf: implement bpf_arch_text_copy
authorHari Bathini <hbathini@linux.ibm.com>
Fri, 20 Oct 2023 14:13:55 +0000 (19:43 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Oct 2023 09:33:19 +0000 (20:33 +1100)
commit6efc1675acb88eef45ef0156b93f95d66a8ee759
tree9e43c538e8fc92f7ffcf1ae2bcbc96c673310381
parent465cabc97b42405eb89380ea6ba8d8b03e4ae1a2
powerpc/bpf: implement bpf_arch_text_copy

bpf_arch_text_copy is used to dump JITed binary to RX page, allowing
multiple BPF programs to share the same page. Use the newly introduced
patch_instructions() to implement it.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231020141358.643575-3-hbathini@linux.ibm.com
arch/powerpc/net/bpf_jit_comp.c