]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix migration of paused vms upon failure
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Dec 2009 08:42:19 +0000 (09:42 +0100)
committerDaniel Veillard <veillard@redhat.com>
Fri, 11 Dec 2009 08:42:19 +0000 (09:42 +0100)
commitba7d82c6996fadb016733f2b5fa135ffa8d8c966
tree3b5b21c1582786c2a9b10028655cf038543c7644
parent25f7fa0583dfd192c4ba39eb7845d6a6b26e1db0
fix migration of paused vms upon failure

This makes a small change on the failed-migration path.  Up to now,
all VMs that failed non-live migration after the "stop" command
were restarted.  This must not be done when the VM was paused in
the first place.

* src/qemu/qemu_driver.c (qemudDomainMigratePerform): Do not restart
  a paused VM that fails migration.  Set paused state after "stop",
  reset it after failure.
src/qemu/qemu_driver.c