libvirt/src/qemu
Osier Yang a73bbfc8be qemu: Remove the managed state file only if restoring succeeded
1) Both "qemuDomainStartWithFlags" and "qemuAutostartDomain" try to
restore the domain from managedsave'ed image if it exists (by
invoking "qemuDomainObjRestore"), but it unlinks the image even
if restoring fails, which causes data loss. (This problem exists
for "virsh managedsave dom; virsh start dom").

The fix for is to unlink the managed state file only if restoring
succeeded.

2) For "virsh save dom; virsh restore dom;", it can cause data
corruption if one reuse the saved state file for restoring. Add
doc to tell user about it.

3) In "qemuDomainObjStart", if "managed_save" is NULL, we shouldn't
fallback to start the domain, skipping it to cleanup as a incidental
fix. Discovered by Eric.
2011-04-07 16:58:26 +08:00
..
libvirtd_qemu.aug qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
qemu_audit.c audit: audit use of /dev/net/tun, /dev/tapN, /dev/vhost-net 2011-03-10 08:35:42 -07: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: Ignore unusable binaries 2011-04-05 14:02:55 +02:00
qemu_capabilities.h qemu: Support vram for video of qxl type 2011-03-06 22:00:27 +08:00
qemu_cgroup.c qemu: Fix improper logic of qemuCgroupSetup 2011-04-01 11:41:33 +08:00
qemu_cgroup.h audit: prepare qemu for listing vm in cgroup audits 2011-02-24 13:31:05 -07:00
qemu_command.c qemu: Always reserves slot 0x02 for primary VGA. 2011-04-06 14:22:54 +08: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 qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
qemu_conf.h qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
qemu_domain.c build: enforce reference count checking 2011-03-24 15:29:18 -06:00
qemu_domain.h Wire up virDomainMigrateSetSpeed into QEMU driver 2011-03-22 15:53:08 +00:00
qemu_driver.c qemu: Remove the managed state file only if restoring succeeded 2011-04-07 16:58:26 +08: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 build: detect potentential uninitialized variables 2011-04-04 11:26:29 -06:00
qemu_hotplug.h rename qemuDomainDetachSCSIDiskDevice to qemuDomainDetachDiskDevice 2011-03-07 11:28:15 -07:00
qemu_migration.c qemu: fix regression with fd labeling on migration 2011-03-29 07:12:29 -06:00
qemu_migration.h qemu: consolidate migration to file code 2011-03-28 10:26:33 -06:00
qemu_monitor_json.c check whether qemuMonitorJSONHMP() failed 2011-03-30 16:32:22 +08:00
qemu_monitor_json.h qemu: Detect support for HMP passthrough 2011-03-22 15:03:57 +01:00
qemu_monitor_text.c build: detect potentential uninitialized variables 2011-04-04 11:26:29 -06:00
qemu_monitor_text.h qemu: consolidate duplicated monitor migration code 2011-03-14 21:57:43 -06:00
qemu_monitor.c check whether qemuMonitorJSONHMP() failed 2011-03-30 16:32:22 +08:00
qemu_monitor.h build: enforce reference count checking 2011-03-24 15:29:18 -06:00
qemu_process.c qemu: Support for overriding NPROC limit 2011-04-06 12:08:59 +02:00
qemu_process.h Split all QEMU process mangement code into separate file 2011-02-17 12:48:55 +00: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