diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-02-03 21:44:17 -0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-02-03 21:44:17 -0200 |
commit | c5f32c99c6855d466737daf1cd262e7e92062f87 (patch) | |
tree | fadf5e2b92af9ba3e9f6f3e80fdc0ffcb628a64d /vl.c | |
parent | 9ded2744667292d020455f51664eb161a449c243 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |