powerpc/pseries/mce: restore msr before returning from handler
authorNicholas Piggin <npiggin@gmail.com>
Sun, 7 Feb 2021 12:54:12 +0000 (22:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:10:50 +0000 (00:10 +1100)
commit74c3354bc1d89d53e8da2dcc6f9f6bfc28b2900f
treeb425ea9c93f11676b45ef202772ee713250adb51
parent56acfdd8bf9f75e83a1b2957bd415368f39b67b6
powerpc/pseries/mce: restore msr before returning from handler

The pseries real-mode machine check handler can enable the MMU, and
return from the handler with the MMU still enabled.

This works, but real-mode handler wrapper exit handlers want to rely
on the MMU being in real-mode. So change the pseries handler to
restore the MSR after it has finished virtual mode tasks.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1612702361.lm7fqo56re.astroid@bobo.none
arch/powerpc/platforms/pseries/ras.c