From: Keir Fraser Subject: Re: pre-reservation of memory for domain creation Date: Thu, 14 Jan 2010 09:27:12 +0000 Message-ID: References: <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@shzsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6CADD16F56BC954D8E28F3836FA7ED7112A7932EBF@shzsmsx501.ccr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xu, Dongxiao" , Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 14/01/2010 07:19, "Xu, Dongxiao" 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