Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761494AbYARPDy (ORCPT ); Fri, 18 Jan 2008 10:03:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757291AbYARPDr (ORCPT ); Fri, 18 Jan 2008 10:03:47 -0500 Received: from terminus.zytor.com ([198.137.202.10]:51817 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbYARPDq (ORCPT ); Fri, 18 Jan 2008 10:03:46 -0500 Message-ID: <4790BD90.9060303@zytor.com> Date: Fri, 18 Jan 2008 09:54:08 -0500 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: huang ying CC: Ian Campbell , "Huang, Ying" , akpm@linux-foundation.org, Thomas Gleixner , Ingo Molnar , Andi Kleen , linux-kernel@vger.kernel.org, Jeremy Fitzhardinge Subject: Re: [PATCH -mm 1/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap - enhance bt_ioremap References: <1200375906.3505.30.camel@caritas-dev.intel.com> <1200646105.17230.28.camel@cthulhu.hellion.org.uk> <851fc09e0801180654u6957f966g47c7629db6d4b2b0@mail.gmail.com> In-Reply-To: <851fc09e0801180654u6957f966g47c7629db6d4b2b0@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 875 Lines: 21 huang ying wrote: > > If CONFIG_X86_PAE is defined, the set_pte, clear_pte etc will operate > 3-level page tables, while on i386, the early page table is always > 2-level, so set_pte, clear_pte etc functions can not be used here. The > boot_ioremap use a trick to deal with this problem. The CONFIG_X86_PAE > is undefined in arch/x86/mm/boot_ioremap_32.c unconditionally, so the > 2-level page table handling function is always used. > > Is the method used by boot_ioremap better for Xen? > Eric Biederman had a patchset that makes a PAE kernel use PAE page tables from the start. That is really The Right Thing[TM]. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/