KVM: s390: protvirt: Mask PSW interrupt bits for interception 104 and 112
authorJanosch Frank <frankja@linux.ibm.com>
Fri, 13 Dec 2019 13:26:06 +0000 (08:26 -0500)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 27 Feb 2020 18:47:12 +0000 (19:47 +0100)
commit3adae0b4ca64c08a6c05a54be0becf9d127d39dc
treeee66a487002db63dda207e6228c9a7c8da69181c
parent7c36a3fcf444ced8efc3da106cc7215227d60fde
KVM: s390: protvirt: Mask PSW interrupt bits for interception 104 and 112

We're not allowed to inject interrupts on intercepts that leave the
guest state in an "in-between" state where the next SIE entry will do a
continuation, namely secure instruction interception (104) and secure
prefix interception (112).
As our PSW is just a copy of the real one that will be replaced on the
next exit, we can mask out the interrupt bits in the PSW to make sure
that we do not inject anything.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
[borntraeger@de.ibm.com: patch merging, splitting, fixing]
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c