Re: [PATCH] powerpc/64s/hash: convert SLB miss handlers to C

2018-08-21 Thread Nicholas Piggin
On Tue, 21 Aug 2018 16:12:44 +1000 Benjamin Herrenschmidt wrote: > On Tue, 2018-08-21 at 15:13 +1000, Nicholas Piggin wrote: > > This patch moves SLB miss handlers completely to C, using the standard > > exception handler macros to set up the stack and branch to C. > > > > This can be done becau

Re: [PATCH] powerpc/64s/hash: convert SLB miss handlers to C

2018-08-21 Thread Nicholas Piggin
On Tue, 21 Aug 2018 16:12:44 +1000 Benjamin Herrenschmidt wrote: > On Tue, 2018-08-21 at 15:13 +1000, Nicholas Piggin wrote: > > This patch moves SLB miss handlers completely to C, using the standard > > exception handler macros to set up the stack and branch to C. > > > > This can be done becau

Re: [PATCH] powerpc/64s/hash: convert SLB miss handlers to C

2018-08-20 Thread Benjamin Herrenschmidt
On Tue, 2018-08-21 at 15:13 +1000, Nicholas Piggin wrote: > This patch moves SLB miss handlers completely to C, using the standard > exception handler macros to set up the stack and branch to C. > > This can be done because the segment containing the kernel stack is > always bolted, so accessing i

[PATCH] powerpc/64s/hash: convert SLB miss handlers to C

2018-08-20 Thread Nicholas Piggin
This patch moves SLB miss handlers completely to C, using the standard exception handler macros to set up the stack and branch to C. This can be done because the segment containing the kernel stack is always bolted, so accessing it with relocation on will not cause an SLB exception. Arbitrary ker