aboutsummaryrefslogtreecommitdiffstats
path: root/target-s390x
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-05-10 11:21:34 +0300
committerMarcelo Tosatti <mtosatti@redhat.com>2010-05-11 14:03:44 -0300
commit4513d9232badcc5039d69dae946054ba2682c258 (patch)
tree5eb6a23d01375e7123a0674bc48f48171c5c5fe2 /target-s390x
parent0af691d779965663abdd7bc708c2ad7bce2f6da0 (diff)
Do not stop VM if emulation failed in userspace.
Continue vcpu execution in case emulation failure happened while vcpu was in userspace. In this case #UD will be injected into the guest allowing guest OS to kill offending process and continue. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/kvm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index a2c00acf0..a2d77419b 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -485,3 +485,8 @@ int kvm_arch_handle_exit(CPUState *env, struct kvm_run *run)
return ret;
}
+
+bool kvm_arch_stop_on_emulation_error(CPUState *env)
+{
+ return true;
+}