Use this in libxl_dm instead of hard-coding. Signed-off-by: Vitaly Kuznetsov <vkuzn...@redhat.com> Acked-by: Ian Campbell <ian.campb...@citrix.com> --- tools/libxc/include/xenguest.h | 2 ++ tools/libxl/libxl_dm.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/libxc/include/xenguest.h b/tools/libxc/include/xenguest.h index 7581263..c95e93c 100644 --- a/tools/libxc/include/xenguest.h +++ b/tools/libxc/include/xenguest.h @@ -147,6 +147,8 @@ int xc_domain_restore2(xc_interface *xch, int io_fd, uint32_t dom, * of the new domain is automatically appended to the filename, * separated by a ".". */ + +#define XC_DEVICE_MODEL_SAVE_FILE "/var/lib/xen/qemu-save" #define XC_DEVICE_MODEL_RESTORE_FILE "/var/lib/xen/qemu-resume" /** diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index 33f9ce6..db789ac 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -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, XC_DEVICE_MODEL_SAVE_FILE".%d", domid); } static const char *qemu_xen_path(libxl__gc *gc) -- 2.4.2 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel