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:49:53 +0000 (10:49 -0500)
commitb6ea7abcf72d7d0aaf90e17aa8e8e88db8f778ea
tree98bfb7b4f58aecfe376e749bc293e055e0e7216a
parent2a32bbbfb118d68071bb0a107b20a5ffdfdc6808
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