From patchwork Thu Mar 4 21:27:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 83680 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o24LRh07017329 for ; Thu, 4 Mar 2010 21:27:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754725Ab0CDV1b (ORCPT ); Thu, 4 Mar 2010 16:27:31 -0500 Received: from hall.aurel32.net ([88.191.82.174]:57310 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754418Ab0CDV12 (ORCPT ); Thu, 4 Mar 2010 16:27:28 -0500 Received: from aurel32 by hall.aurel32.net with local (Exim 4.69) (envelope-from ) id 1NnIZo-0000le-KX; Thu, 04 Mar 2010 22:27:24 +0100 Date: Thu, 4 Mar 2010 22:27:24 +0100 From: Aurelien Jarno To: Ryan Harper Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: Re: [Qemu-devel] [PATCH] Fix segfault with ram_size > 4095M without kvm Message-ID: <20100304212724.GH5860@hall.aurel32.net> References: <20100223151314.GN17350@us.ibm.com> <4B840A17.9050809@aurel32.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4B840A17.9050809@aurel32.net> X-Mailer: Mutt 1.5.18 (2008-05-17) User-Agent: Mutt/1.5.18 (2008-05-17) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 04 Mar 2010 21:27:44 +0000 (UTC) diff --git a/exec.c b/exec.c index 8389c54..b0bb058 100644 --- a/exec.c +++ b/exec.c @@ -166,7 +166,7 @@ typedef struct PhysPageDesc { */ #define L1_BITS (TARGET_VIRT_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS) #else -#define L1_BITS (32 - L2_BITS - TARGET_PAGE_BITS) +#define L1_BITS (TARGET_PHYS_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS) #endif #define L1_SIZE (1 << L1_BITS)