]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: Add flag to enable creating checkpoints in live state
authorPeter Krempa <pkrempa@redhat.com>
Tue, 9 Oct 2012 10:11:56 +0000 (12:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 3 Nov 2012 13:43:01 +0000 (14:43 +0100)
commit5f75bd4bbe605c8799e84acc7f6a1d6b41e6f1d1
tree71cebbad43b70e1ad2ca113e946213d2f8a3d913
parent2771f8b74c1bf50d1fa63bb1c5a01f603215d58f
snapshot: Add flag to enable creating checkpoints in live state

The default behavior while creating external checkpoints is to pause the
guest while the memory state is captured. We want the users to sacrifice
space saving for creating the memory save image while the guest is live
to minimize downtime.

This patch adds a flag that causes the guest not to be paused before
taking the snapshot.
 *include/libvirt/libvirt.h.in:
    - add new paused reason: VIR_DOMAIN_PAUSED_SNAPSHOT
    - add new flag for taking snapshot: VIR_DOMAIN_SNAPSHOT_CREATE_LIVE
 *tools/virsh-domain-monitor.c:
    - add string representation for VIR_DOMAIN_PAUSED_SNAPSHOT
 *tools/virsh-snapshot.c:
    - add support for VIR_DOMAIN_SNAPSHOT_CREATE_LIVE
 *tools/virsh.pod:
    - add docs for --live option added to use
    VIR_DOMAIN_SNAPSHOT_CREATE_LIVE flag
include/libvirt/libvirt.h.in
src/libvirt.c
tools/virsh-domain-monitor.c
tools/virsh-snapshot.c
tools/virsh.pod