WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Live vm migration broken in latest xen-unstable

To: sanjay kushwaha <sanjay.kushwaha@xxxxxxxxx>
Subject: Re: [Xen-devel] Live vm migration broken in latest xen-unstable
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Tue, 5 Sep 2006 16:57:46 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 05 Sep 2006 08:58:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <2717599f0609011436k25d05be3l50ebb8120ea30dd1@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <2717599f0609011436k25d05be3l50ebb8120ea30dd1@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Sep 01, 2006 at 05:36:00PM -0400, sanjay kushwaha wrote:

> Folks,
> I am experiencing that live migration is not working in latest
> xen-unstable. I get the following message during migration
> 
> [root@pc5 ksanjay]# xm migrate --live 1 [1]199.77.138.23
> Error: /usr/lib/xen/bin/xc_save 18 1 0 0 1 failed
> [root@pc5 ksanjay]#
> 
> I traced the problem to a function in xen named set_sh_allocation() in
> file xen/arch/x86/mm/shadow/common.c
> 
> tools/libxc/xc_linux_save.c:xc_linux_save() is called from the python
> script which makes the following hypercall
> 
>     if (live) {
>         if (xc_shadow_control(xc_handle, dom,
>                               XEN_DOMCTL_SHADOW_OP_ENABLE_LOGDIRTY,
>                               NULL, 0, NULL, 0, NULL) < 0) {
>             ERR("Couldn't enable shadow mode");
>             goto out;
>         }
>         last_iter = 0;
>     } else {
> -----------
> 
> this particular hypercall leads to the call of set_sh_allocation which
> fails in the following code
> 
>         if ( d-> arch.shadow.total_pages < pages )
>         {
>             /* Need to allocate more memory from domheap */
>             pg = alloc_domheap_pages(NULL, SHADOW_MAX_ORDER, 0);
>             if ( pg == NULL )
>             {
>                 SHADOW_PRINTK("failed to allocate shadow pages.\n");
>                 return -ENOMEM;
>             }
> 
> alloc_domheap_pages fails and returns NULL. however I think I have enough
> memory available so this function should not fail.
> 
> Is there anybody else experiencing the same problem? Could someone please
> tell me how to fix it?

I've put some changes into xen-unstable today which might help.  The last fix
is on its way through testing now.  Look out for xen-unstable changeset
11422, and try that, see how you get on.

Cheers,

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel