]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuProcessHandleMigrationStatus: Update migration status more frequently
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Jul 2015 12:15:03 +0000 (14:15 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Jul 2015 13:07:12 +0000 (15:07 +0200)
commit45cc2fca5c97d7e6d6e00389c6f459b5660d0f1f
tree6d9a9c87d80e3237ae94fee20dfdc227f2071bda
parent4ffb21c89a6b9ae2b4bfd2999c24b01433e360a9
qemuProcessHandleMigrationStatus: Update migration status more frequently

After Jirka's migration patches libvirt is listening on migration
events from qemu instead of actively polling on the monitor. There is,
however, a little regression (introduced in 6d2edb6a42d0d41). The
problem is, the current status of migration job is updated in
qemuProcessHandleMigrationStatus if and only if migration job was
started. But eventually every asynchronous job may result in
migration. Therefore, since this job is not strictly a
migration job, internal state was not updated and later checks failed:

  virsh # save fedora22 /tmp/fedora22_ble.save
  error: Failed to save domain fedora22 to /tmp/fedora22_ble.save
  error: operation failed: domain save job: is not active

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c