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>
This commit is contained in:
Marcelo Tosatti 2010-02-03 21:44:17 -02:00
parent 9ded274466
commit c5f32c99c6
1 changed files with 2 additions and 0 deletions

2
vl.c
View File

@ -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;
}