aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xcutils
diff options
context:
space:
mode:
authorTim Deegan <Tim.Deegan@xensource.com>2007-07-24 15:47:36 +0100
committerTim Deegan <Tim.Deegan@xensource.com>2007-07-24 15:47:36 +0100
commit3e3989b612f269221d3bb510a619fd2baa0f68a6 (patch)
tree41e15af2cb198f4fc09ce796ccaa6efa8d949bb7 /tools/xcutils
parentd55594ec24fb3a2efe1a88c976386af9faa77f0d (diff)
downloadxen-3e3989b612f269221d3bb510a619fd2baa0f68a6.tar.gz
xen-3e3989b612f269221d3bb510a619fd2baa0f68a6.tar.bz2
xen-3e3989b612f269221d3bb510a619fd2baa0f68a6.zip
[HVM] Live-migration fixups after 15639:c585f993385c
Use the same xenstore area for log-dirty commands as for save/continue, and avoid a race condition by acking the save command after the save. Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Diffstat (limited to 'tools/xcutils')
-rw-r--r--tools/xcutils/xc_save.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/xcutils/xc_save.c b/tools/xcutils/xc_save.c
index 4bfcc67a8d..188ea7b72e 100644
--- a/tools/xcutils/xc_save.c
+++ b/tools/xcutils/xc_save.c
@@ -123,11 +123,13 @@ static void * init_qemu_maps(int domid, unsigned int bitmap_size)
/* Tell qemu about it */
if ((xs = xs_daemon_open()) == NULL)
errx(1, "Couldn't contact xenstore");
- if (!(path = xs_get_domain_path(xs, domid)))
+ if (!(path = strdup("/local/domain/0/device-model/")))
errx(1, "can't get domain path in store");
if (!(path = realloc(path, strlen(path)
+ + 10
+ strlen("/logdirty/next-active") + 1)))
errx(1, "no memory for constructing xenstore path");
+ snprintf(path + strlen(path), 11, "%i", domid);
strcat(path, "/logdirty/");
p = path + strlen(path);