s390/nmi: handle vector validity failures for KVM guests
authorChristian Borntraeger <borntraeger@linux.ibm.com>
Mon, 17 Jan 2022 17:40:32 +0000 (18:40 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 23 Jan 2022 09:20:03 +0000 (10:20 +0100)
commitf094a39c6ba168f2df1edfd1731cca377af5f442
treef2e37f34dfd009809ebd4298c77fd52038bafadf
parent1ea1d6a847d2b1d17fefd9196664b95f052a0775
s390/nmi: handle vector validity failures for KVM guests

The machine check validity bit tells about the context. If a KVM guest
was running the bit tells about the guest validity and the host state is
not affected. As a guest can disable the guest validity this might
result in unwanted host errors on machine checks.

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