migration: control whether snapshots are ovewritten
commitf781f84189e3e325da0b0c6a241b77d54b7ea26c
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Feb 2021 12:48:29 +0000 (4 12:48 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 8 Feb 2021 11:19:51 +0000 (8 11:19 +0000)
tree441b7862ce9b5c8209602ea1be5792d78358a674
parent3d3e9b1f669b60d9d3cb857edbfc3d54cbb9c0ef
migration: control whether snapshots are ovewritten

The traditional HMP "savevm" command will overwrite an existing snapshot
if it already exists with the requested name. This new flag allows this
to be controlled allowing for safer behaviour with a future QMP command.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210204124834.774401-8-berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/snapshot.h
migration/savevm.c
monitor/hmp-cmds.c
replay/replay-debugging.c
replay/replay-snapshot.c