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-ia64-devel

Re: [Xen-ia64-devel] [Xen-devel][IPF][RFC] Error (12, 'Cannot allocate

To: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [Xen-devel][IPF][RFC] Error (12, 'Cannot allocate memory') when creating domain
From: INAKOSHI Hiroya <inakoshi.hiroya@xxxxxxxxxxxxxx>
Date: Tue, 05 Sep 2006 10:47:09 +0900
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 04 Sep 2006 18:48:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <01913ADC4FF97E40AE0E2B001574AEE14EB76B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <01913ADC4FF97E40AE0E2B001574AEE14EB76B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Hi, Anthony,

It looks to me that you are mentioning bugzilla-#736.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=736

Please see the next URL and its followups.  The Tristan's patch seems
not yet in xen-ia64-unstable tree.

http://thread.gmane.org/gmane.comp.emulators.xen.ia64/3980/focus=3980

HTH,

Hiroya


Xu, Anthony wrote:
> Hi all,
> 
> When I create domain, XEN may complain Error (12, 'Cannot allocate memory') 
> even though there are plenty of memory available.
> I think kangkang had reported this bug.
> 
> After investigation, I found this is caused by copy_to_guest.
> 
> Dom0 calls increase_reservation hypercall to allocate memory for domain.
> At the end of this function, it will copy all mfns to guest address space.
> 
>         /* Inform the domain of the new page's machine address. */ 
>         if ( !guest_handle_is_null(extent_list) )
>         {
>             mfn = page_to_mfn(page);
>             if ( unlikely(__copy_to_guest_offset(extent_list, i, &mfn, 1)) )
>                 return i;
>         }
> 
> But __copy_to_guest_offset may fail in ia64 side, due to XEN may not record 
> this 
> tlb. Yes, increase_reservation function implements 'retry mechanism', it 
> hopes 
> dom0 will call it again from the failure point. But dom0 didn't use this  
> 'retry 
> mechanism', dom0 thought this hypercall fail, and dom0 reported mistakenly  
> Error (12, 'Cannot allocate memory')
> 
> Thanks,
> Anthony
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-ia64-devel
> 
> 


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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-ia64-devel] [Xen-devel][IPF][RFC] Error (12, 'Cannot allocate memory') when creating domain, INAKOSHI Hiroya <=