qemu: Fix seamless SPICE migration
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 20 Sep 2013 14:40:20 +0000 (16:40 +0200)
committerDoug Goldstein <cardoe@cardoe.com>
Wed, 25 Sep 2013 15:50:57 +0000 (10:50 -0500)
commitfea2550974137918c2bc9e01f3eb00421585450c
tree0f1ffdf5b534d25a58c689215f35099a77d52373
parent7659e912c5e6d152210e7084d57770ea10335a3a
qemu: Fix seamless SPICE migration

Since the wait is done during migration (still inside
QEMU_ASYNC_JOB_MIGRATION_OUT), the code should enter the monitor as such
in order to prohibit all other jobs from interfering in the meantime.
This patch fixes bug #1009886 in which qemuDomainGetBlockInfo was
waiting on the monitor condition and after GetSpiceMigrationStatus
mangled its internal data, the daemon crashed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1009886
(cherry picked from commit 484cc3217b73b865f00bf42a9c12187b37200699)
src/qemu/qemu_migration.c