From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754181Ab1BGQsB (ORCPT ); Mon, 7 Feb 2011 11:48:01 -0500 Received: from smtp.eu.citrix.com ([62.200.22.115]:43671 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753225Ab1BGQsA (ORCPT ); Mon, 7 Feb 2011 11:48:00 -0500 X-IronPort-AV: E=Sophos;i="4.60,438,1291593600"; d="scan'208";a="4198193" Date: Mon, 7 Feb 2011 16:50:02 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball-desktop To: Yinghai Lu CC: "H. Peter Anvin" , Jeremy Fitzhardinge , Stefano Stabellini , "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "x86@kernel.org" , Konrad Rzeszutek Wilk , Jan Beulich Subject: Re: [PATCH] x86/mm/init: respect memblock reserved regions when destroying mappings In-Reply-To: <4D4EF553.6000000@kernel.org> Message-ID: References: <4D4A3782.3050702@zytor.com> <4D4ADFAD.7060507@zytor.com> <4D4CA568.70907@goop.org> <4D4E4E0D.2080806@zytor.com> <4D4EF553.6000000@kernel.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 6 Feb 2011, Yinghai Lu wrote: > On 02/05/2011 11:30 PM, H. Peter Anvin wrote: > > On 02/05/2011 11:02 PM, Yinghai Lu wrote: > >> why not just move calling cleanup_highmap down? > >> > >> something like attached patch. > > > > This patch looks very clean and looks on the surface of it like it is > > removing some ugly ad hoc code, but (as always) it needs a description > > about the problem it solves and why it is correct. > > Sure. > > > Jeremy and xen guys, can you please check if it works well with xen ? > Actually this patch makes things worse on xen, because before cleanup_highmap() wasn't called at all on xen (on purpose) and now it is, fully destroying all the mappings we have at _end. Can we add a check on memblock reserved regions in cleanup_highmap()? Otherwise could we avoid calling cleanup_highmap() at all on xen?