Re: [RFC v2 0/6] x86: dynamic indirect branch promotion

From: Peter Zijlstra
Date: Tue Jan 08 2019 - 13:58:16 EST


On Tue, Jan 08, 2019 at 09:27:21AM -0800, Andi Kleen wrote:
> It doesn't work when the code is modified in place, like the
> patch in the $SUBJECT.

For in-place modification a-la jump_label / static_call etc. we can
'trivially' log the new instruction and the decoder can do matching
in-place kcore adjustments.