diff options
author | 2010-02-03 21:44:17 -0200 | |
---|---|---|
committer | 2010-04-14 00:10:24 +0200 | |
commit | 9167a242db92fa49ba1f60fcc748fa07258f3819 (patch) | |
tree | 853536a6249951027410304bd6b48a3d36af60cc /vl.c | |
parent | Fix SIGFPE for vnc display of width/height = 1 (diff) | |
download | qemu-kvm-9167a242db92fa49ba1f60fcc748fa07258f3819.tar.gz qemu-kvm-9167a242db92fa49ba1f60fcc748fa07258f3819.tar.bz2 qemu-kvm-9167a242db92fa49ba1f60fcc748fa07258f3819.zip |
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>
(cherry picked from commit c5f32c99c6855d466737daf1cd262e7e92062f87)
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3471,6 +3471,8 @@ static int cpu_can_run(CPUState *env) return 0; if (env->stopped) return 0; + if (!vm_running) + return 0; return 1; } |