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:51:27 +0000 (10:51 -0500)
commit476d0e38af11f3ff50d85e3f7aecad4cd8208c76
tree210549656dad8bdb2dbf01553ae904573ab28ef1
parent15033105c262ce115a05c8cba4951752b556fbe8
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