Martin Schwidefsky 0a5e2ec264 s390/kvm: fix detection of guest machine checks
The new detection code for guest machine checks added a check based
on %r11 to .Lcleanup_sie to distinguish between normal asynchronous
interrupts and machine checks. But the funtion is called from the
program check handler as well with an undefined value in %r11.

The effect is that all program exceptions pointing to the SIE instruction
will set the CIF_MCCK_GUEST bit. The bit stays set for the CPU until the
 next machine check comes in which will incorrectly be interpreted as a
guest machine check.

The simplest fix is to stop using .Lcleanup_sie in the program check
handler and duplicate a few instructions.

Fixes: c929500d7a5a ("s390/nmi: s390: New low level handling for machine check happening in guest")
Cc: <stable@vger.kernel.org> # v4.13+
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-10-25 07:59:30 +02:00
..
2012-05-16 14:42:41 +02:00
2015-06-25 09:39:26 +02:00
2011-01-05 12:47:31 +01:00
2017-03-28 16:54:31 +02:00
2017-06-20 15:44:15 -04:00
2016-08-29 11:05:01 +02:00
2015-03-25 11:49:33 +01:00
2016-08-07 23:47:20 -04:00
2017-02-08 14:13:25 +01:00
2015-03-25 11:49:33 +01:00
2016-02-11 13:05:56 +01:00
2017-06-12 16:26:02 +02:00