Message ID | 20091022205727.GA23092@amt.cnet (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/qemu-kvm.c b/qemu-kvm.c index 87ece3d..141c8b1 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1931,7 +1931,8 @@ static int kvm_main_loop_cpu(CPUState *env) } if (run_cpu) { kvm_main_loop_wait(env, 0); - kvm_cpu_exec(env); + if (!is_cpu_stopped(env)) + kvm_cpu_exec(env); } else { kvm_main_loop_wait(env, 1000); }