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] pre-reservation of memory for domain creation

To: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] pre-reservation of memory for domain creation
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 14 Jan 2010 09:27:12 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 14 Jan 2010 01:27:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqUJde5GKxg8sBVSlebO3XYAC1M+QAw92MQAASCy4Y=
Thread-topic: [Xen-devel] pre-reservation of memory for domain creation
User-agent: Microsoft-Entourage/12.23.0.091001
On 14/01/2010 07:19, "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx> wrote:

> +    if ( !is_idle_domain(v->domain) )
> +    {
> +        shadow_lock(v->domain);
> +        sh_set_allocation(v->domain, 128, NULL);
> +        shadow_unlock(v->domain);
> +    }

What if sh_set_allocation() fails?

 -- Keir



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