KVM: s390: Send program check on access error
authorCarsten Otte <cotte@de.ibm.com>
Wed, 21 May 2008 11:37:40 +0000 (13:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Fri, 6 Jun 2008 18:08:26 +0000 (21:08 +0300)
commit1f0d0f094df9a570dfc26d5eb825986b7e165e1d
tree4f598069f3a17c926deb70bbbd3d088d881efbfc
parent0ff318674503ce3787ef62d84f4d948db204b268
KVM: s390: Send program check on access error

If the guest accesses non-existing memory, the sie64a function returns
-EFAULT. We must check the return value and send a program check to the
guest if the sie instruction faulted, otherwise the guest will loop at
the faulting code.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/kvm-s390.c