Thread (7 messages) flat view 7 messages, 3 authors, 2021-06-03

Re: [PATCH 1/1] bpf: avoid unnecessary IPI in bpf_flush_icache

From: Xu, Yanfei <hidden>
Date: 2021-06-02 11:27:48
Also in: bpf, lkml, netdev


On 6/2/21 1:41 AM, Will Deacon wrote:
[Please note: This e-mail is from an EXTERNAL e-mail address]

On Tue, Jun 01, 2021 at 07:20:04PM +0200, Daniel Borkmann wrote:
quoted
On 6/1/21 5:06 PM, Yanfei Xu wrote:
quoted
It's no need to trigger IPI for keeping pipeline fresh in bpf case.
This needs a more concrete explanation/analysis on "why it is safe" to do so
rather than just saying that it is not needed.
Agreed. You need to show how the executing thread ends up going through a
context synchronizing operation before jumping to the generated code if
the IPI here is removed.
This patch came out with I looked through ftrace codes. Ftrace modify
the text code and don't send IPI in aarch64_insn_patch_text_nosync(). I
mistakenly thought the bpf is same with ftrace.

But now I'm still not sure why the ftrace don't need the IPI to go
through context synchronizing, maybe the worst situation is omit a
tracing event?

Thanks,
Yanfei
Will
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help