Received: from eggs.gnu.org ([2001:4830:134:3::10]:60603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLi8I-0000Wt-CD for qemu-devel@nongnu.org; Fri, 08 Jul 2016 22:36:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLi8C-0006TN-BZ for qemu-devel@nongnu.org; Fri, 08 Jul 2016 22:36:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLi8C-0006TJ-6N for qemu-devel@nongnu.org; Fri, 08 Jul 2016 22:36:36 -0400 Date: Fri, 8 Jul 2016 23:36:32 -0300 From: Eduardo Habkost Message-ID: <20160709023632.GU4131@thinpad.lan.raisama.net> References: <1467990099-27853-1-git-send-email-dgilbert@redhat.com> <1467990099-27853-3-git-send-email-dgilbert@redhat.com> <20160708233615.GS4131@thinpad.lan.raisama.net> <0e83051d-56d1-6c68-ce2e-f427c2c1b391@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e83051d-56d1-6c68-ce2e-f427c2c1b391@twiddle.net> Subject: Re: [Qemu-devel] [PATCH v4 2/5] x86: Allow physical address bits to be set List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: "Dr. David Alan Gilbert (git)" , qemu-devel@nongnu.org, pbonzini@redhat.com, marcel@redhat.com, mst@redhat.com, kraxel@redhat.com On Fri, Jul 08, 2016 at 05:59:16PM -0700, Richard Henderson wrote: > On 07/08/2016 04:36 PM, Eduardo Habkost wrote: > > -#elif defined(TARGET_X86_64) > > -#define TARGET_PHYS_ADDR_SPACE_BITS 42 > > -#elif defined(TARGET_I386) > > -#define TARGET_PHYS_ADDR_SPACE_BITS 36 > > [...] > > --- a/target-i386/cpu.h > > +++ b/target-i386/cpu.h > > [...] > > +#ifdef TARGET_X86_64 > > +#define TARGET_PHYS_ADDR_SPACE_BITS 52 > > +/* ??? This is really 48 bits, sign-extended, but the only thing > > + accessible to userland with bit 48 set is the VSYSCALL, and that > > + is handled via other mechanisms. */ > > +#define TARGET_VIRT_ADDR_SPACE_BITS 47 > > +#else > > +#define TARGET_PHYS_ADDR_SPACE_BITS 36 > > +#define TARGET_VIRT_ADDR_SPACE_BITS 32 > > +#endif > > + > > > > But I really don't understand why it was changed to 52 when the > > macros were moved. A (fortunate) typo? > > It was 6 years ago, but I assume that I looked up 52 as a theoretical > maximum. I'm not going to look it up again to verify though. Probably that's the case. David Gilbert also found 52 to be the maximum. -- Eduardo