]> git.ipfire.org Git - thirdparty/libvirt.git/commit
retrieve paused/running state at migration start
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Dec 2009 09:06:05 +0000 (10:06 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 11 Dec 2009 09:06:05 +0000 (10:06 +0100)
commit5de41c06a4d4bc4222bf8477fd641a987d06be58
tree046a7d66047d346c3a0bd213b9f4f057ec530695
parentedc9e78b4870265c453ccb931950434d9002cd6e
retrieve paused/running state at migration start

This patch fixes the bug where paused/running state is not
transmitted during migration.  As a result, in the QEMU driver
for example the machine was always started on the destination
end.

In order to do so, just read the state and if it is appropriate and
set the VIR_MIGRATE_PAUSED flag.

* src/libvirt.c (virDomainMigrateVersion1, virDomainMigrateVersion2):
  Automatically add VIR_MIGRATE_PAUSED when appropriate.
* src/xen/xend_internal.c (xenDaemonDomainMigratePerform): Give a nicer
  error message when migration of paused domains is attempted.
src/libvirt.c
src/xen/xend_internal.c