]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mcck: fix invalid KVM guest condition check
authorAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 17 May 2021 06:18:12 +0000 (08:18 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 10:12:03 +0000 (12:12 +0200)
commit1874cb13d5d7cafa61ce93a760093ebc5485b6ab
treed7d738eff17ef60d4d9c0dc9441fdcd7f3c1686f
parent5bcbe3285fb614c49db6b238253f7daff7e66312
s390/mcck: fix invalid KVM guest condition check

Wrong condition check is used to decide if a machine check hit
while in KVM guest. As result of this check the instruction
following the SIE critical section might be considered as still
in KVM guest and _CIF_MCCK_GUEST CPU flag mistakenly set as
result.

Fixes: c929500d7a5a ("s390/nmi: s390: New low level handling for machine check happening in guest")
Cc: <stable@vger.kernel.org>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/entry.S