]> xenbits.xensource.com Git - libvirt.git/commit
Fix error propagation in finish method for v3 migration
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 23 May 2011 12:50:11 +0000 (08:50 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 May 2011 15:47:48 +0000 (11:47 -0400)
commit1853bd9d6e1a0629c53894da5e7fd1e6762f17ca
treec877701dfec1fe4722366b4430f7f29d3e677e49
parentb3367103833ac12a27154045fcfa69b8526d537a
Fix error propagation in finish method for v3 migration

Even when failing to start CPUs, the finish method was returning
a success result. Fix this so that the QEMU process is killed
off when finish fails under v3 protocol. Also rename the
killOnFinish boolean to 'v3proto' to make it clearer that this
is a tunable based on the migration protocol version

* src/qemu/qemu_driver.c: Update for API change
* src/qemu/qemu_migration.c, src/qemu/qemu_migration.h: Kill
  VM in qemuMigrationFinish if failing to start CPUs
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h