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

Michael Ellerman mpe at ellerman.id.au
Tue Aug 21 16:46:02 AEST 2018


Nicholas Piggin <npiggin at gmail.com> writes:

> 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 kernel memory may not be accessed when handling kernel space
> SLB misses, so care should be taken there.

We'll need to mark everything that's used in slb.c as notrace, otherwise

Probably we just need to mark the whole file as not traceable.

cheers


More information about the Linuxppc-dev mailing list