aboutsummaryrefslogtreecommitdiff
path: root/vl.c
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 /vl.c
parent9ded2744667292d020455f51664eb161a449c243 (diff)
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 50f133d496..57f0ba53df 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;
}