]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Fix incoming migration with iothread
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 3 Feb 2010 23:44:17 +0000 (21:44 -0200)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Apr 2010 22:10:24 +0000 (00:10 +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>
(cherry picked from commit c5f32c99c6855d466737daf1cd262e7e92062f87)

vl.c

diff --git a/vl.c b/vl.c
index 6b6e86d69a3f7345ade38f38d9e0ac5dcf6435f8..77677e8018782a7e10a8f09da33fef0c7bb77d03 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3471,6 +3471,8 @@ static int cpu_can_run(CPUState *env)
         return 0;
     if (env->stopped)
         return 0;
+    if (!vm_running)
+        return 0;
     return 1;
 }