From: Jan Kiszka Date: Tue, 1 Feb 2011 21:16:02 +0000 (+0100) Subject: kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN X-Git-Tag: TizenStudio_2.0_p2.3~3372^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afdfb83e69059db98a84dc833a7fb3daf32c94bf;p=sdk%2Femulator%2Fqemu.git kvm: Leave kvm_cpu_exec directly after KVM_EXIT_SHUTDOWN 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 Signed-off-by: Marcelo Tosatti --- diff --git a/kvm-all.c b/kvm-all.c index 4729ec5..42dfed8 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -963,7 +963,6 @@ int kvm_cpu_exec(CPUState *env) case KVM_EXIT_SHUTDOWN: DPRINTF("shutdown\n"); qemu_system_reset_request(); - ret = 1; break; case KVM_EXIT_UNKNOWN: fprintf(stderr, "KVM: unknown exit, hardware reason %" PRIx64 "\n",