From: Ian Jackson Date: Wed, 17 Dec 2008 11:39:21 +0000 (+0000) Subject: stubdom: Fix live migration of HVM domain X-Git-Tag: t.master-before-merge~44 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7ed781aff412cff84a884405d99b0f1f7a629fc3;p=qemu-xen-3.4-testing.git stubdom: Fix live migration of HVM domain Live-migration fails because stubdom-dm doesn't respond to the request from xc_save for the logdirty bitmap segment. The attached patch simply generated from old ioemu tree will fix the issue, then. Derived from old xen internal tools/ioemu tree. Signed-off-by: Yosuke Iwamatsu --- diff --git a/xenstore.c b/xenstore.c index a7a2d4c1..86e8b639 100644 --- a/xenstore.c +++ b/xenstore.c @@ -592,10 +592,6 @@ int xenstore_fd(void) void xenstore_process_logdirty_event(void) { -#ifdef CONFIG_STUBDOM - /* XXX we just can't use shm. */ - return; -#else char *act; static char *active_path = NULL; static char *next_active_path = NULL; @@ -623,6 +619,10 @@ void xenstore_process_logdirty_event(void) /* No key yet: wait for the next watch */ return; +#ifdef CONFIG_STUBDOM + /* We pass the writes to hypervisor */ + seg = (void*)1; +#else strncpy(key_terminated, key_ascii, 16); free(key_ascii); key = (key_t) strtoull(key_terminated, NULL, 16); @@ -662,6 +662,7 @@ void xenstore_process_logdirty_event(void) seg = NULL; return; } +#endif /* Remember the paths for the next-active and active entries */ if (pasprintf(&active_path, @@ -698,7 +699,6 @@ void xenstore_process_logdirty_event(void) /* Ack that we've switched */ xs_write(xsh, XBT_NULL, active_path, act, len); free(act); -#endif }