Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-02-16 Thread Michael Ellerman
On Mon, 10 Jan 2022 12:29:42 +, Christophe Leroy wrote: > BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers > because there are not enough volatile registers, but they don't need > to be preserved on function calls. > > So when some volatile registers become available,

Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-01-14 Thread Naveen N. Rao
Christophe Leroy wrote: Le 14/01/2022 à 08:58, Naveen N. Rao a écrit : Christophe Leroy wrote: BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers because there are not enough volatile registers, but they don't need to be preserved on function calls. So when some volatile

Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-01-14 Thread Christophe Leroy
Le 14/01/2022 à 08:58, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers >> because there are not enough volatile registers, but they don't need >> to be preserved on function calls. >> >> So when some volatile registers

Re: [PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-01-13 Thread Naveen N. Rao
Christophe Leroy wrote: BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers because there are not enough volatile registers, but they don't need to be preserved on function calls. So when some volatile registers become available, those registers can always be reallocated

[PATCH] powerpc/bpf: Always reallocate BPF_REG_5, BPF_REG_AX and TMP_REG when possible

2022-01-10 Thread Christophe Leroy
BPF_REG_5, BPF_REG_AX and TMP_REG are mapped on non volatile registers because there are not enough volatile registers, but they don't need to be preserved on function calls. So when some volatile registers become available, those registers can always be reallocated regardless of whether