From: Keir Fraser Subject: Re: bitopts functions overflowing page boundarys Date: Sat, 28 May 2005 10:51:06 +0100 Message-ID: <5376ad69acc3fea510abc0ee527f1e97@cl.cam.ac.uk> References: <20050528044320.GA9951@us.ibm.com> <20050528090422.GB9951@us.ibm.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050528090422.GB9951@us.ibm.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: Scott Parish Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28 May 2005, at 10:04, Scott Parish wrote: > o problem when dom0_mem is less then 2048K; at exactly 2048 we hit > the next sized "order" which can't be fulfilled from the 0x100-0xdff60 > range. All initial allocation for dom0 that i've seen that fall in the > "usable" above the hole have the problem i described. > > Setting, > > max_page = init_e820(e820_raw, &e820_raw_nr) - 1; > > seems to unravel a number of things. shall i preceed to figure out > what all, or is such still needed? No, I guess this situation just isn't as unlikely as I though it would be. :-) I checked in a fixed up bitops.h that should fix the problem for you without needing new bitop functions. -- Keir