aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenguest.h
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 17:57:31 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-01-21 17:57:31 +0000
commit1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff (patch)
tree0c47b7eda450575e04fc0cfdb8abe1da650e3a07 /tools/libxc/xenguest.h
parente1e6f0f906c72f646b0b1213d202c19356b41de1 (diff)
downloadxen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.tar.gz
xen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.tar.bz2
xen-1b1d0b8b75864c6e26e7af5c95b90ecaeb37a9ff.zip
tools: Change the name of the qemu save file at restore time
Change the name of the qemu save file to qemu-resume at restore time so that it doesn't collide with the name of the next save file. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenguest.h')
-rw-r--r--tools/libxc/xenguest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libxc/xenguest.h b/tools/libxc/xenguest.h
index dd0c4cf6e8..9ed0ea41fe 100644
--- a/tools/libxc/xenguest.h
+++ b/tools/libxc/xenguest.h
@@ -77,6 +77,14 @@ int xc_domain_restore(xc_interface *xch, int io_fd, uint32_t dom,
unsigned int store_evtchn, unsigned long *store_mfn,
unsigned int console_evtchn, unsigned long *console_mfn,
unsigned int hvm, unsigned int pae, int superpages);
+/**
+ * xc_domain_restore writes a file to disk that contains the device
+ * model saved state.
+ * The pathname of this file is XC_DEVICE_MODEL_RESTORE_FILE; The domid
+ * of the new domain is automatically appended to the filename,
+ * separated by a ".".
+ */
+#define XC_DEVICE_MODEL_RESTORE_FILE "/var/lib/xen/qemu-resume"
/**
* This function will create a domain for a paravirtualized Linux