From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Crash on boot with 2.6.37-rc8-git3 Date: Tue, 25 Jan 2011 10:52:01 -0500 Message-ID: <20110125155201.GA25076@dumpdata.com> References: <20110121152751.GA4156@dumpdata.com> <20110124141453.GA6511@dumpdata.com> <1295961878.14780.6063.camel@zakaz.uk.xensource.com> <1295963130.14780.6105.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: Ian Campbell , "xen-devel@lists.xensource.com" , M A Young List-Id: xen-devel@lists.xenproject.org On Tue, Jan 25, 2011 at 03:19:22PM +0000, Stefano Stabellini wrote: > On Tue, 25 Jan 2011, Ian Campbell wrote: > > > unless I am very confused > > > > > > map[i].size -= (map[i].size + map[i].addr) % PAGE_SIZE > > > > > > is not the same as: > > > > > > as map[i].size &= ~(PAGE_SIZE-1): > > > > > > because it also takes into account the possibility that map[i].addr is > > > not page aligned. > > > > Oh yes, I didn't notice that aspect of it. > > > > > It doesn't move map[i].addr upward but still makes sure that > > > the region ends at a page boundary anyway. > > > > Which returns to my second question ;-) Why do we not need to align addr > > too? > > My machine can boot fine with a map[i].addr not page aligned. OK, so then the patch that M A Young came up with ought to do it?