diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-01-21 21:48:06 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-01-23 02:27:20 -0200 |
commit | 14df1f6b8964d24aff8d744f35fd405c2d794227 (patch) | |
tree | 9606fdae91367fe5aa6fb57b89a1a33539405049 /target-ppc | |
parent | 5e112402199be5cbedf744a927a6040d5044cdfc (diff) | |
download | qemu-14df1f6b8964d24aff8d744f35fd405c2d794227.tar.gz qemu-14df1f6b8964d24aff8d744f35fd405c2d794227.tar.bz2 qemu-14df1f6b8964d24aff8d744f35fd405c2d794227.zip |
kvm: Stop on all fatal exit reasons
Ensure that we stop the guest whenever we face a fatal or unknown exit
reason. If we stop, we also have to enforce a cpu loop exit.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/kvm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 5caa07cba8..849b404b83 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -307,6 +307,10 @@ int kvm_arch_handle_exit(CPUState *env, struct kvm_run *run) dprintf("handle halt\n"); ret = kvmppc_handle_halt(env); break; + default: + fprintf(stderr, "KVM: unknown exit reason %d\n", run->exit_reason); + ret = -1; + break; } return ret; |