]> 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)
commitd2fa773231beb9030304b06cd6746f9e352251c1
treed7d738eff17ef60d4d9c0dc9441fdcd7f3c1686f
parent745efc843bcb6b779a9b17864655cd8bcfdc99a1
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: 11a9325b6667 ("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