]> git.proxmox.com Git - qemu.git/commitdiff
Fix incoming migration with iothread
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Feb 2010 23:44:17 +0000 (21:44 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Feb 2010 23:44:17 +0000 (21:44 -0200)
Do not allow the vcpus to execute if the vm is stopped.

Fixes -incoming with CONFIG_IOTHREAD enabled.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
vl.c

diff --git a/vl.c b/vl.c
index 50f133d4964f27b7104c0147b427e4d691ac352e..57f0ba53df0fa014616fb56ec008667d72371e14 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3282,6 +3282,8 @@ static int cpu_can_run(CPUState *env)
         return 0;
     if (env->stopped)
         return 0;
+    if (!vm_running)
+        return 0;
     return 1;
 }