summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2011-03-21 21:28:19 +0100
committerAurelien Jarno <aurelien@aurel32.net>2011-03-21 21:28:19 +0100
commit32465727627711ff3e1cde6777a014413c3cb9ee (patch)
tree8564302dab9b2939e556ad01e369cf1712485eb7 /savevm.c
parentcc4e8741ccdaa905017f3c7c59e14c685a239c2d (diff)
parent03feae73056ba3223151c31871860e30630645ac (diff)
downloadqemu-32465727627711ff3e1cde6777a014413c3cb9ee.tar.gz
qemu-32465727627711ff3e1cde6777a014413c3cb9ee.tar.bz2
qemu-32465727627711ff3e1cde6777a014413c3cb9ee.zip
Merge branch 'for-anthony' of git://repo.or.cz/qemu/kevin
* 'for-anthony' of git://repo.or.cz/qemu/kevin: Add qcow2 documentation hw/xen_disk: aio_inflight not released in handling ioreq when nr_segments==0 Improve error handling in do_snapshot_blkdev() Fix ATA SMART and CHECK POWER MODE Don't allow multiwrites against a block device without underlying medium tools: Use real async.c instead of stubs Add error message for loading snapshot without VM state block/qcow: Don't ignore immediate read/write and other failures block/vdi: Don't ignore immediate read/write failures
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/savevm.c b/savevm.c
index 60d2f2a547..d1b9b4a413 100644
--- a/savevm.c
+++ b/savevm.c
@@ -2021,6 +2021,8 @@ int load_vmstate(const char *name)
if (ret < 0) {
return ret;
} else if (sn.vm_state_size == 0) {
+ error_report("This is a disk-only snapshot. Revert to it offline "
+ "using qemu-img.");
return -EINVAL;
}