Re: [PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-31 Thread Balbir Singh
On 24/03/16 22:04, Michael Ellerman wrote: > Add the kconfig logic & assembly support for handling live patched > functions. This depends on DYNAMIC_FTRACE_WITH_REGS, which in turn > depends on the new -mprofile-kernel ftrace ABI, which is only supported > currently on ppc64le. > > Live patching

Re: [PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-28 Thread Michael Ellerman
On Thu, 2016-03-24 at 14:42 +0100, Torsten Duwe wrote: > On Thu, Mar 24, 2016 at 10:04:05PM +1100, Michael Ellerman wrote: > > +livepatch_handler: > > + CURRENT_THREAD_INFO(r12, r1) > [...] > > + /* Put ctr in r12 for global entry and branch there */ > > + mfctr r12 > > + bctrl >

Re: [PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-24 Thread Torsten Duwe
On Thu, Mar 24, 2016 at 10:04:05PM +1100, Michael Ellerman wrote: > +livepatch_handler: > + CURRENT_THREAD_INFO(r12, r1) [...] > + /* Put ctr in r12 for global entry and branch there */ > + mfctr r12 > + bctrl ^ I like this piece. No need to fiddle out the return helpe

[PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-24 Thread Michael Ellerman
Add the kconfig logic & assembly support for handling live patched functions. This depends on DYNAMIC_FTRACE_WITH_REGS, which in turn depends on the new -mprofile-kernel ftrace ABI, which is only supported currently on ppc64le. Live patching is handled by a special ftrace handler. This means it ru