From: Keir Fraser Subject: Re: question on c/s 15964 Date: Thu, 27 Sep 2007 08:51:32 +0100 Message-ID: References: <46FB7189.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <46FB7189.76E4.0078.0@novell.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: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/9/07 08:02, "Jan Beulich" wrote: > in the new function reserve_e820_ram() you do nothing *and* return 0 (success) > if an entry would need to be split but there's no room. This seems dangerous > to > me; in the original version of the patch I had sent I truncated the entry > instead, > choosing the variant (start or end) that resulted in less loss of memory. Yes, that's probably a better option. Or lose entries from the end of the e820map (which is what silently happens if the BIOS offers more than 128 entries in the first place). Or perhaps just BUG_ON()? -- Keir