]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: migration: Refresh device information after transferring state
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Feb 2018 14:02:17 +0000 (15:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Feb 2018 09:39:32 +0000 (10:39 +0100)
commit93db7eea1b86408e02852a8c886d473f4f5007e3
treec582f88ce8e2418dce4274f703e3245e22aff4b6
parent038eb472a0d970a17ccf4343ead0666df5c92f9d
qemu: migration: Refresh device information after transferring state

In my first approach in 4b480d10768c I overlooked the comment in
qemuMigrationRunIncoming stating that during actual migration the
qemuMigrationRunIncoming does not wait until the migration is complete
but rather offloads that to the Finish phase of migration.

This means that during actual migration qemuProcessRefreshState was
called prior to qemu actually transferring the full state and thus the
queries did not get the correct information. The approach worked only
for restore, where we wait for the migration to finish during qemu
startup.

Fix the issue by calling qemuProcessRefreshState both from
qemuProcessStart if there's no incomming migration and from
qemuMigrationFinish so that the code actually works as expected.
src/qemu/qemu_migration.c
src/qemu/qemu_process.c
src/qemu/qemu_process.h