Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763127AbYFEVP2 (ORCPT ); Thu, 5 Jun 2008 17:15:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751166AbYFEVPL (ORCPT ); Thu, 5 Jun 2008 17:15:11 -0400 Received: from gw.goop.org ([64.81.55.164]:44620 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbYFEVPJ (ORCPT ); Thu, 5 Jun 2008 17:15:09 -0400 Message-ID: <48485732.4090203@goop.org> Date: Thu, 05 Jun 2008 22:14:26 +0100 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: "H. Peter Anvin" CC: Jan Beulich , Ingo Molnar , Stable Kernel , x86@kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH] x86: set PAE PHYSICAL_MASK_SHIFT to match 64-bit References: <4848046A.5060006@goop.org> <484823BD.76E4.0078.0@novell.com> <4848096D.9010603@goop.org> <48481846.6060407@kernel.org> In-Reply-To: <48481846.6060407@kernel.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; 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: 1587 Lines: 40 H. Peter Anvin wrote: > Jeremy Fitzhardinge wrote: >> >> We could have an auction: >> >> Do I hear 46? 47? 48? 50? 52! Going once, twice, 52 bits! >> >> Anyway, we can fix it later in a separate patch. This is a >> change-as-little-as-possible bugfix patch. >> > > It should either be 52 bits or dynamic based on CPUID information. > The latter is very expensive. I'm more concerned that it might not be possible. I'm trying to think how many places have compile-time constants derived from this mask. Maybe not too many. > If there end up being additional control bits assigned in this space > we won't use them since we know the size of the address space (which > won't include the control bits) and thus will leave them at zero. You mean, if new bits appear we can just adjust the mask accordingly to avoid them? And if we don't use them, then they'll be zero? > It's largely theoretical, since I believe Linux on x86-64 relies on > virtual >= physical+N, where I believe N is about 3 bits, and the page > table format or page size need to change to support more than 48 bits > of virtual address space. I don't see any relationship between the physical and virtual size. Certainly virtual is fixed at 48 bits (4*9+12), but I don't think there's any deep reason why physical needs to be within 3 bits. J -- 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/