From c5f32c99c6855d466737daf1cd262e7e92062f87 Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Wed, 3 Feb 2010 21:44:17 -0200 Subject: [PATCH] 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 --- vl.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5