From: Marcelo Tosatti Date: Wed, 3 Feb 2010 23:44:17 +0000 (-0200) Subject: Fix incoming migration with iothread X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c5f32c99c6855d466737daf1cd262e7e92062f87;p=qemu.git 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 --- 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; }