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 <email@example.com>
Acked-by: Martin Schwidefsky <firstname.lastname@example.org>
Acked-by: Heiko Carstens <email@example.com>
Acked-by: Christian Borntraeger <firstname.lastname@example.org>
Signed-off-by: Christian Borntraeger <email@example.com>