[15/18] kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN

Message ID 9e232d73dd169900e78a517693db8c1ab0a0abee.1294648329.git.jan.kiszka@web.de
State New
Headers show

Commit Message

Jan Kiszka Jan. 10, 2011, 8:32 a.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

The reset we issue on KVM_EXIT_SHUTDOWN implies that we should also
leave the VCPU loop. As we now check for exit_request which is set by
qemu_system_reset_request, this bug is no longer critical. Still it's an
unneeded extra turn.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
 kvm-all.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/kvm-all.c b/kvm-all.c
index fb4d73e..0abe088 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -891,7 +891,6 @@  int kvm_cpu_exec(CPUState *env)
         case KVM_EXIT_SHUTDOWN:
-            ret = 1;
         case KVM_EXIT_UNKNOWN:
             fprintf(stderr, "KVM: unknown exit, hardware reason %" PRIx64 "\n",