]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: add LIBXL_DEVICE_MODEL_SAVE_FILE
authorVitaly Kuznetsov <vkuznets@redhat.com>
Thu, 10 Sep 2015 14:58:26 +0000 (16:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Sep 2015 14:58:26 +0000 (16:58 +0200)
Use this in libxl_dm instead of hard-coding.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h

index c84085e89a2c6577aa3a18cdf6fa00224754af9b..b7c6592ce7248e2d0c27ca86d7a0d4bbbbd01d6f 100644 (file)
@@ -31,7 +31,7 @@ static const char *libxl_tapif_script(libxl__gc *gc)
 
 const char *libxl__device_model_savefile(libxl__gc *gc, uint32_t domid)
 {
-    return libxl__sprintf(gc, "/var/lib/xen/qemu-save.%d", domid);
+    return libxl__sprintf(gc, LIBXL_DEVICE_MODEL_SAVE_FILE".%d", domid);
 }
 
 static const char *qemu_xen_path(libxl__gc *gc)
index 6ea6c834572355d26c8a3b234d43ff0819f5402f..c3c3b7ba53955f8b93ed4fe7d019d05fd395c0a9 100644 (file)
@@ -90,6 +90,7 @@
 /* QEMU may be slow to load and start due to a bug in Linux where the I/O
  * subsystem sometime produce high latency under load. */
 #define LIBXL_DEVICE_MODEL_START_TIMEOUT 60
+#define LIBXL_DEVICE_MODEL_SAVE_FILE "/var/lib/xen/qemu-save" /* .$domid */
 #define LIBXL_DEVICE_MODEL_RESTORE_FILE "/var/lib/xen/qemu-resume" /* .$domid */
 #define LIBXL_STUBDOM_START_TIMEOUT 30
 #define LIBXL_QEMU_BODGE_TIMEOUT 2