From: Keir Fraser Subject: Re: balloon question Date: Fri, 9 Jun 2006 11:35:55 +0100 Message-ID: <964dc03e5036adf2c8e25d5a778f0f76@cl.cam.ac.uk> References: <4488479F.76E4.0078.0@novell.com> <15e85c6aa3f95ddc8a8d4d121ca056cc@cl.cam.ac.uk> <448938BA.76E4.0078.0@novell.com> <88c8090558680a08b523cf86cfb0c497@cl.cam.ac.uk> <44896106.76E4.0078.0@novell.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44896106.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 9 Jun 2006, at 10:52, Jan Beulich wrote: >> But I think it's prefereable to take the following loop from >> i386/mm/init-xen.c and put it in x86/64's mem_init() somewhere: >> for (i = ...->nr_pages; i < max_pfn; i++) { >> ClearPageReserved(...); >> set_page_count(..., 1); >> } > > Did you deliberately leave out the increment of totalram_pages that is > in > i386's respective loop? I have to admit that I can't see why i386 is > doing > that, but for symmetry I added it to x86-64's loop, too (balloon_init() > re-writes the variable anyway). The increment is bogus. Gets overwritten by the balloon driver anyway. I'll remove it from your patch and fix i386 too. Thanks! -- Keir