summaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorJens Freimann <jfrei@linux.vnet.ibm.com>2012-04-22 23:52:23 +0000
committerAlexander Graf <agraf@suse.de>2012-05-01 21:04:06 +0200
commitadd142e0aa41daad86f650b68bac6b6a8e808f8d (patch)
treea0834b05cb1f6e32ffb0e11e5512efe0c36ad4fe /target-s390x
parenteb3caa44b03f5d72a49a18c72443825b58168734 (diff)
S390: support reboot for kvm on s390
This patch adds reboot support for s390x-softmmu by calling the generic reboot support in kvm. Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/kvm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 2b6723149d..956730d638 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -452,8 +452,7 @@ int kvm_arch_handle_exit(CPUS390XState *env, struct kvm_run *run)
ret = handle_intercept(env);
break;
case KVM_EXIT_S390_RESET:
- fprintf(stderr, "RESET not implemented\n");
- exit(1);
+ qemu_system_reset_request();
break;
default:
fprintf(stderr, "Unknown KVM exit: %d\n", run->exit_reason);