libvirt/src/qemu
Daniel P. Berrange 5e31df9335 Fix preservation of errors across migration steps
When doing migration, if an error occurs in Perform, it must not
be overwritten during Finish/Confirm steps. If an error occurs
in Finish, it must not be overwritten in Confirm.

Previous commit a9d12c2444 added
code to qemudDomainMigrateFinish2 to preserve the error. This
is not the right place, because it is not applicable in non-p2p
migration. The src/libvirt.c virDomainMigrateV2/3 methods need
code to preserve errors for non-p2p migration, while the
doPeer2PeerMigrate2 and doPeer2PeerMigrate3 methods contain
code to preverse errors for p2p migration.

Remove the bogus error preservation from qemudDomainMigrateFinish2
and qemudDomainMigrateFinish3.

Fix virDomainMigrateV3 and doPeer2PeerMigrate3 so that they
preserve any error hit during the Finish3 step, before invoking
Confirm3.

Finally if qemuMigrationFinish fails to resume the CPUs, it must
preserve the error before tearing down the VM, so that VM cleanup
doesn't overwrite it.

* src/libvirt.c: Preserve error before invoking Confirm3
* src/qemu/qemu_driver.c: Remove bogus error preservation
  code in qemudDomainMigrateFinish2/qemudDomainMigrateFinish3
* src/qemu/qemu_migration.c: Preserve error before invoking Confirm3
  and after resume fails in qemuMigrationFinish.
2011-05-25 11:47:48 -04:00
..
libvirtd_qemu.aug qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
qemu_audit.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
qemu_audit.h audit: audit use of /dev/net/tun, /dev/tapN, /dev/vhost-net 2011-03-10 08:35:42 -07:00
qemu_bridge_filter.c Remove conn parameter from virReportSystemError 2010-02-09 01:04:54 +01:00
qemu_bridge_filter.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
qemu_capabilities.c qemu: fix typo in name - should be VHOST_NET, not VNET_HOST 2011-05-24 10:45:55 -04:00
qemu_capabilities.h qemu: fix typo in name - should be VHOST_NET, not VNET_HOST 2011-05-24 10:45:55 -04:00
qemu_cgroup.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
qemu_cgroup.h qemu: update qemuCgroupControllerActive signature 2011-05-04 09:35:47 -06:00
qemu_command.c qemu: fix typo in name - should be VHOST_NET, not VNET_HOST 2011-05-24 10:45:55 -04:00
qemu_command.h audit: audit use of /dev/net/tun, /dev/tapN, /dev/vhost-net 2011-03-10 08:35:42 -07:00
qemu_conf.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
qemu_conf.h qemu: Use virDomainEventState helpers 2011-05-13 10:48:32 -04:00
qemu_domain.c qemu: Use virDomainEventState helpers 2011-05-13 10:48:32 -04:00
qemu_domain.h Make taint warnings also go into the domain logfile 2011-05-06 12:02:02 +01:00
qemu_driver.c Fix preservation of errors across migration steps 2011-05-25 11:47:48 -04:00
qemu_driver.h Split all QEMU process mangement code into separate file 2011-02-17 12:48:55 +00:00
qemu_hostdev.c reattach pci devices when qemuPrepareHostdevPCIDevices() failed 2011-04-07 13:09:46 +08:00
qemu_hostdev.h Move QEMU hostdev helper code out of the QEMU driver 2010-12-17 13:50:21 +00:00
qemu_hotplug.c libvirt,logging: cleanup VIR_XXX0() 2011-05-11 12:41:14 -06:00
qemu_hotplug.h Make QEMU hotplug use cached qemu capabilities data 2011-05-05 11:33:10 +01:00
qemu_migration.c Fix preservation of errors across migration steps 2011-05-25 11:47:48 -04:00
qemu_migration.h Fix error propagation in finish method for v3 migration 2011-05-25 11:47:48 -04:00
qemu_monitor_json.c Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_monitor_json.h Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_monitor_text.c Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_monitor_text.h Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_monitor.c Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_monitor.h Wire up SPICE client relocation with QEMU migration 2011-05-16 15:18:22 +01:00
qemu_process.c qemu: Update domain state when reconnecting monitor 2011-05-16 13:36:08 +02:00
qemu_process.h Implement domain state reason 2011-05-16 13:36:08 +02:00
qemu.conf qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
test_libvirtd_qemu.aug qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
THREADS.txt docs: more on qemu locking patterns 2011-02-02 09:19:31 -07:00