aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_dom.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-12-15 16:56:21 +0000
committerIan Campbell <ian.campbell@citrix.com>2011-12-15 16:56:21 +0000
commit6e359548a1c9afdaee765ccd8b9635424acdb1bd (patch)
treed42abac634a6917b66213d14a3ce085197f037dd /tools/libxl/libxl_dom.c
parentac5298f260edaf5c07f8eb9ec329a1ee104bd664 (diff)
downloadxen-6e359548a1c9afdaee765ccd8b9635424acdb1bd.tar.gz
xen-6e359548a1c9afdaee765ccd8b9635424acdb1bd.tar.bz2
xen-6e359548a1c9afdaee765ccd8b9635424acdb1bd.zip
libxl: remove stubdom device model save file when destroying stubdom
/var/lib/xen/qemu-save.<domid> is created when the stub domain is started (connected to a stubdom console) and is used to save the device model state on suspend/migrate but never cleaned up. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_dom.c')
-rw-r--r--tools/libxl/libxl_dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c
index a0c859ed0b..768360143a 100644
--- a/tools/libxl/libxl_dom.c
+++ b/tools/libxl/libxl_dom.c
@@ -608,7 +608,7 @@ int libxl__domain_save_device_model(libxl__gc *gc, uint32_t domid, int fd)
libxl_ctx *ctx = libxl__gc_owner(gc);
int fd2, c;
char buf[1024];
- char *filename = libxl__sprintf(gc, "/var/lib/xen/qemu-save.%d", domid);
+ const char *filename = libxl__device_model_savefile(gc, domid);
struct stat st;
uint32_t qemu_state_len;