powerpc/64s: IOption for MSR stored in r12
authorRohan McLure <rmclure@linux.ibm.com>
Thu, 1 Dec 2022 07:10:16 +0000 (18:10 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2022 09:46:01 +0000 (20:46 +1100)
commit2487fd2e6d61b5293eed8ecd25add3cc78593d38
tree3ca10a866717b367b2ffa9f0f6da580d86e3b52a
parent75c5d6b1e194c341371639469fcb8691afa0e254
powerpc/64s: IOption for MSR stored in r12

Interrupt handlers in asm/exceptions-64s.S contain a great deal of common
code produced by the GEN_COMMON macros. Currently, at the exit point of
the macro, r12 will contain the contents of the MSR. A future patch will
cause these macros to zeroise architected registers to avoid potential
speculation influence of user data.

Provide an IOption that signals that r12 must be retained, as the
interrupt handler assumes it to hold the contents of the MSR.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221201071019.1953023-4-rmclure@linux.ibm.com
arch/powerpc/kernel/exceptions-64s.S