From: "Jan Beulich" Subject: RE: pre-reservation of memory for domain creation Date: Wed, 13 Jan 2010 07:55:48 +0000 Message-ID: <4B4D8A9402000078000299C3@vpn.id2.novell.com> References: <4B4CA40C0200007800029657@vpn.id2.novell.com> <4B4CAEB9020000780002969A@vpn.id2.novell.com> <6CADD16F56BC954D8E28F3836FA7ED7112A79326F2@shzsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <6CADD16F56BC954D8E28F3836FA7ED7112A79326F2@shzsmsx501.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Dongxiao Xu Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> "Xu, Dongxiao" 13.01.10 03:34 >>> >If we didn't add this change, as Keir said, Xen will crash during = destruction of partially-created domain.=20 If this indeed is reproducible, I think it should be fixed. >However I didn't noticed the toolstack and shadow_min_acceptable_pages() = side at that time... >For now, should we adjust the shadow pre-alloc size to match shadow_min_ac= ceptable_pages() and modify toolstack accordingly? I would say so, just with the problem that I can't reliable say what = "accordingly" here would be (and hence I can't craft a patch I can = guarantee will work at least in most of the cases). And as said before, I'm also not convinced that using the maximum possible = number of vCPU-s for this initial calculation is really the right thing to = do. Jan