From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH v2 net-next] bpf: arm64: remove callee-save registers use for tmp registers Date: Tue, 17 May 2016 13:52:19 +0200 Message-ID: <573B05F3.7000009@iogearbox.net> References: <1463441786-32224-1-git-send-email-yang.shi@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: will.deacon@arm.com, catalin.marinas@arm.com, zlim.lnx@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org To: Yang Shi , ast@kernel.org, davem@davemloft.net Return-path: In-Reply-To: <1463441786-32224-1-git-send-email-yang.shi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 05/17/2016 01:36 AM, Yang Shi wrote: > In the current implementation of ARM64 eBPF JIT, R23 and R24 are used for > tmp registers, which are callee-saved registers. This leads to variable size > of JIT prologue and epilogue. The latest blinding constant change prefers to > constant size of prologue and epilogue. AAPCS reserves R9 ~ R15 for temp > registers which not need to be saved/restored during function call. So, replace > R23 and R24 to R10 and R11, and remove tmp_used flag to save 2 instructions for > some jited BPF program. > > CC: Daniel Borkmann > Acked-by: Zi Shen Lim > Signed-off-by: Yang Shi LGTM, thanks! Acked-by: Daniel Borkmann