Re: [PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h

2022-06-02 Thread Christophe Leroy
Hi Petr, Le 23/05/2022 à 17:15, Petr Mladek a écrit : > On Mon 2022-05-23 06:51:47, Christophe Leroy wrote: >> >> >> Le 29/03/2022 à 13:22, Petr Mladek a écrit : >>> On Mon 2022-03-28 08:26:48, Christophe Leroy wrote: All three versions of klp_arch_set_pc() do exactly the same: they call

Re: [PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h

2022-05-22 Thread Christophe Leroy
Le 29/03/2022 à 13:22, Petr Mladek a écrit : > On Mon 2022-03-28 08:26:48, Christophe Leroy wrote: >> All three versions of klp_arch_set_pc() do exactly the same: they >> call ftrace_instruction_pointer_set(). >> >> Call ftrace_instruction_pointer_set() directly and remove >> klp_arch_set_pc(). >

Re: [PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h

2022-03-29 Thread Miroslav Benes
On Mon, 28 Mar 2022, Christophe Leroy wrote: > All three versions of klp_arch_set_pc() do exactly the same: they > call ftrace_instruction_pointer_set(). > > Call ftrace_instruction_pointer_set() directly and remove > klp_arch_set_pc(). > > As klp_arch_set_pc() was the only thing remaining in as

Re: [PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h

2022-03-28 Thread Peter Zijlstra
On Mon, Mar 28, 2022 at 08:26:48AM +0200, Christophe Leroy wrote: > All three versions of klp_arch_set_pc() do exactly the same: they > call ftrace_instruction_pointer_set(). > > Call ftrace_instruction_pointer_set() directly and remove > klp_arch_set_pc(). > > As klp_arch_set_pc() was the only t

[PATCH] livepatch: Remove klp_arch_set_pc() and asm/livepatch.h

2022-03-27 Thread Christophe Leroy
All three versions of klp_arch_set_pc() do exactly the same: they call ftrace_instruction_pointer_set(). Call ftrace_instruction_pointer_set() directly and remove klp_arch_set_pc(). As klp_arch_set_pc() was the only thing remaining in asm/livepatch.h on x86 and s390, remove asm/livepatch.h livep