]> git.baikalelectronics.ru Git - kernel.git/commit
s390/nmi: s390: New low level handling for machine check happening in guest
authorQingFeng Hao <haoqf@linux.vnet.ibm.com>
Wed, 7 Jun 2017 09:30:42 +0000 (11:30 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 27 Jun 2017 14:05:27 +0000 (16:05 +0200)
commit4ab708ccde4bc17a87e4bb085bedba8cd63d9743
treee3ef466e5f8c06db9077d62f831e1e14fd779f48
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
s390/nmi: s390: New low level handling for machine check happening in guest

Add the logic to check if the machine check happens when the guest is
running. If yes, set the exit reason -EINTR in the machine check's
interrupt handler. Refactor s390_do_machine_check to avoid panicing
the host for some kinds of machine checks which happen
when guest is running.
Reinject the instruction processing damage's machine checks including
Delayed Access Exception instead of damaging the host if it happens
in the guest because it could be caused by improper update on TLB entry
or other software case and impacts the guest only.

Signed-off-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Acked-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/nmi.h
arch/s390/include/asm/processor.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/entry.S
arch/s390/kernel/nmi.c