Hi Alex,
Sorry, I added a bug.
Here is a fixed one.
I'm now struggling with supporting HVM live migation.
HVM doesn't support log-dirty mode yet.
Thanks,
Kouya
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
# HG changeset patch
# User Kouya Shimura <kouya@xxxxxxxxxxxxxx>
# Date 1202353020 -32400
# Node ID 1de053b23416ff223d32eb11117591f92a4b2cdf
# Parent 6b89a0f027c2b438d1f369cce0bc670cda1390d9
In live migration, a domain is paused and *entire* memory is copied
after pre-copy phase.
(i.e. live migration is not live)
diff -r 6b89a0f027c2 -r 1de053b23416 tools/libxc/ia64/xc_ia64_linux_save.c
--- a/tools/libxc/ia64/xc_ia64_linux_save.c Wed Feb 06 19:21:45 2008 +0900
+++ b/tools/libxc/ia64/xc_ia64_linux_save.c Thu Feb 07 11:57:00 2008 +0900
@@ -651,6 +651,9 @@ xc_domain_save(int xc_handle, int io_fd,
if (test_bit(N, to_skip) && test_bit(N, to_send))
skip_this_iter++;
if (test_bit(N, to_skip) || !test_bit(N, to_send))
+ continue;
+ } else if (live) {
+ if (!test_bit(N, to_send))
continue;
}
Alex Williamson writes:
>
> On Wed, 2008-02-06 at 19:55 +0900, Kouya Shimura wrote:
> > In live migration, a domain is paused and *entire* memory is copied
> > after pre-copy phase.
> > (i.e. live migration is not live)
>
> Hi Kouya,
>
> I'm excited that you're looking into making live migration "live",
> but this is causing my migration test to fail. For a simple NFS root PV
> guest, I get this:
>
> # xm migrate floater 10.91.73.214
> Error: /usr/lib/xen/bin/xc_save 22 6 0 0 0 failed
> Usage: xm migrate <Domain> <Host>
> ...
>
> xend.log shows the following:
>
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072) [xc_save]:
> /usr/lib/xen/bin/xc
> _save 22 6 0 0 0
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072) suspend
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072) In saveInputHandler suspend
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072) Suspending 6 ...
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072)
> XendDomainInfo.shutdown(suspen
> d)
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072)
> XendDomainInfo.handleShutdownW
> atch
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072)
> XendDomainInfo.handleShutdownW
> atch
> [2008-02-06 11:56:13 10652] INFO (__init__:1072) Domain has shutdown:
> name=migra
> ting-floater id=6 reason=suspend.
> [2008-02-06 11:56:13 10652] INFO (__init__:1072) Domain 6 suspended.
> [2008-02-06 11:56:13 10652] DEBUG (__init__:1072) Written done
> [2008-02-06 11:56:13 10652] ERROR (__init__:1072) Save failed on domain
> floater
> (6).
> Traceback (most recent call last):
> File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 112, in save
> forkHelper(cmd, fd, saveInputHandler, False)
> File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 369, in forkHelper
> raise XendError("%s failed" % string.join(cmd))
> XendError: /usr/lib/xen/bin/xc_save 22 6 0 0 0 failed
>
> Thanks,
>
> Alex
>
> --
> Alex Williamson HP Open Source & Linux Org.
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
|