]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_migration.c: sleep first before checking for migration status.
authorXing Lin <xinglin@cs.utah.edu>
Thu, 9 Apr 2015 22:02:02 +0000 (16:02 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Apr 2015 07:52:28 +0000 (09:52 +0200)
commit522e81cbb501e9772fbafba975ac886c1b4a283d
treefb1c732196f356101ad89624a82f1bf09f70fc61
parente4d7ddfdd2220046b8ca9f5e2af3a5d45e962e44
qemu_migration.c: sleep first before checking for migration status.

The problem with the previous implementation is,
even when qemuMigrationUpdateJobStatus() detects a migration job
has completed, it will do a sleep for 50 ms (which is unnecessary
and only adds up to the VM pause time).

Signed-off-by: Xing Lin <xinglin@cs.utah.edu>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c