From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH 10/28] i386: map enough initial memory to create lowmem mappings Date: Mon, 23 Apr 2007 09:01:59 -0700 Message-ID: <462CD877.8000302@zytor.com> References: <20070414204154.871250608@goop.org> <200704192250.52633.ak@suse.de> <4627D756.5020405@zytor.com> <200704192304.01053.ak@suse.de> <4627DB0C.2010804@zytor.com> <4627DDAD.4070805@redhat.com> <4627E099.209@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Eric W. Biederman" Cc: Jeremy Fitzhardinge , Chuck Ebbert , Andi Kleen , Andrew Morton , virtualization@lists.osdl.org, lkml , Zachary Amsden , Chris Wright , Linus Torvalds List-Id: virtualization@lists.linuxfoundation.org Eric W. Biederman wrote: > > I happened to be looking at this stretch of code and I have realized > that this is quite simply the wrong fix. > > The problem is that it depends intimately on the details of > alloc_bootmem_pages_low. Essentially the problem is that when > we are setting up the identity mappings in paging_init we assume > the identity mappings already exist. > > If there are holes in the memory map or someone changes the way > pages are returned from alloc_bootmem_pages_low() this code > will break again. > How would holes in the memory map affect it? -hpa