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:
parent
9ded274466
commit
c5f32c99c6
1 changed files with 2 additions and 0 deletions
2
vl.c
2
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue