summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-02-03 21:44:17 -0200
committerMarcelo Tosatti <mtosatti@redhat.com>2010-02-03 21:44:17 -0200
commitc5f32c99c6855d466737daf1cd262e7e92062f87 (patch)
treefadf5e2b92af9ba3e9f6f3e80fdc0ffcb628a64d
parent9ded2744667292d020455f51664eb161a449c243 (diff)
downloadhqemu-c5f32c99c6855d466737daf1cd262e7e92062f87.zip
hqemu-c5f32c99c6855d466737daf1cd262e7e92062f87.tar.gz
Fix incoming migration with iothread
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>
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 50f133d..57f0ba5 100644
--- 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;
}
OpenPOWER on IntegriCloud