summaryrefslogtreecommitdiff
path: root/migration/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-18 11:46:23 +0200
committerJuan Quintela <quintela@redhat.com>2017-05-04 10:33:58 +0200
commitd905bb7b747dbb6409b1498396fa8569312e779f (patch)
treecfee4f8ea4d2b6f75e1919813cd101bbe34d51f7 /migration/savevm.c
parentd9c7d137c8f208fbe5b72f64eff96565e4380d8f (diff)
downloadqemu-d905bb7b747dbb6409b1498396fa8569312e779f.zip
monitor: Move hmp_delvm from savevm.c to hmp.c
It really uses block/* stuff, not migration one. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/savevm.c')
-rw-r--r--migration/savevm.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index 834525522a..9e0bd9d5d2 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -2304,19 +2304,6 @@ int load_vmstate(const char *name)
return 0;
}
-void hmp_delvm(Monitor *mon, const QDict *qdict)
-{
- BlockDriverState *bs;
- Error *err;
- const char *name = qdict_get_str(qdict, "name");
-
- if (bdrv_all_delete_snapshot(name, &bs, &err) < 0) {
- error_reportf_err(err,
- "Error while deleting snapshot on device '%s': ",
- bdrv_get_device_name(bs));
- }
-}
-
void hmp_info_snapshots(Monitor *mon, const QDict *qdict)
{
BlockDriverState *bs, *bs1;