Re: [PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-14 Thread Naveen N. Rao
Christophe Leroy wrote: Le 11/01/2022 à 15:35, Christophe Leroy a écrit : Le 11/01/2022 à 11:31, Naveen N. Rao a écrit : Christophe Leroy wrote: Le 06/01/2022 à 12:45, Naveen N. Rao a écrit : In preparation for using kernel TOC, load the same in r2 on entry. With elfv1, the kernel TOC

Re: [PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-11 Thread Christophe Leroy
Le 11/01/2022 à 15:35, Christophe Leroy a écrit : Le 11/01/2022 à 11:31, Naveen N. Rao a écrit : Christophe Leroy wrote: Le 06/01/2022 à 12:45, Naveen N. Rao a écrit : In preparation for using kernel TOC, load the same in r2 on entry. With elfv1, the kernel TOC is already setup by our

Re: [PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-11 Thread Christophe Leroy
Le 11/01/2022 à 11:31, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> >> >> Le 06/01/2022 à 12:45, Naveen N. Rao a écrit : >>> In preparation for using kernel TOC, load the same in r2 on entry. With >>> elfv1, the kernel TOC is already setup by our caller so we just emit a >>> nop. We

Re: [PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-11 Thread Naveen N. Rao
Christophe Leroy wrote: Le 06/01/2022 à 12:45, Naveen N. Rao a écrit : In preparation for using kernel TOC, load the same in r2 on entry. With elfv1, the kernel TOC is already setup by our caller so we just emit a nop. We adjust the number of instructions to skip on a tail call accordingly.

Re: [PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-10 Thread Christophe Leroy
Le 06/01/2022 à 12:45, Naveen N. Rao a écrit : > In preparation for using kernel TOC, load the same in r2 on entry. With > elfv1, the kernel TOC is already setup by our caller so we just emit a > nop. We adjust the number of instructions to skip on a tail call > accordingly. > > Signed-off-by:

[PATCH 11/13] powerpc64/bpf elfv2: Setup kernel TOC in r2 on entry

2022-01-06 Thread Naveen N. Rao
In preparation for using kernel TOC, load the same in r2 on entry. With elfv1, the kernel TOC is already setup by our caller so we just emit a nop. We adjust the number of instructions to skip on a tail call accordingly. Signed-off-by: Naveen N. Rao --- arch/powerpc/net/bpf_jit_comp64.c | 8