From patchwork Tue May 21 10:57:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 245271 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E6EA82C00BE for ; Tue, 21 May 2013 21:04:16 +1000 (EST) Received: from localhost ([::1]:51826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekMY-0004b0-LI for incoming@patchwork.ozlabs.org; Tue, 21 May 2013 07:04:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGc-0004Fm-Lr for qemu-devel@nongnu.org; Tue, 21 May 2013 06:58:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UekGb-00058r-7q for qemu-devel@nongnu.org; Tue, 21 May 2013 06:58:06 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:61230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UekGa-00056a-Vy for qemu-devel@nongnu.org; Tue, 21 May 2013 06:58:05 -0400 Received: by mail-ee0-f52.google.com with SMTP id c13so296084eek.11 for ; Tue, 21 May 2013 03:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=ZKneg1Zf9JnifEKXXF+/EQ3M1+F4mHiVoPhL4nR8oAo=; b=CEqZEcWUq2PfxhXzewIHUU5CgK6bl+vXHO8626yu50607WEJDKt8tcSwUJV+IXYQzN OgSSL1LzujanPxGgXeiZguYc/+CrMD5KMUkKp2vRE31koTpY4Jzg2maFA8eD3FvN/1/J 4ADppSB14Eubigm4uTYDUjv2Nz6QTSPXDny0lNlFBMsbWZFhdwCMuMFBIC9Wgteg2M6V sXBtrnN7Ycxh6I7fQi86mdAzytSDY8kWqCa0NyoSDtzx5GN/JdhQpZOohv/0Mi5Lx3EG d6e8E8M8FCepE56cBCuvhVBE/96f9SkLX0wpPZg+LnEjbGI8F+7DHq622rtPq/0jesge eGfA== X-Received: by 10.14.5.5 with SMTP id 5mr5287894eek.21.1369133884127; Tue, 21 May 2013 03:58:04 -0700 (PDT) Received: from playground.lan (net-37-116-223-193.cust.dsl.vodafone.it. [37.116.223.193]) by mx.google.com with ESMTPSA id a5sm2754398ees.6.2013.05.21.03.58.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 21 May 2013 03:58:03 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 21 May 2013 12:57:13 +0200 Message-Id: <1369133851-1894-13-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> References: <1369133851-1894-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.83.52 Cc: peter.maydell@linaro.org, jan.kiszka@gmail.com, Alexander Graf , David Gibson Subject: [Qemu-devel] [PATCH 12/30] s390x: reduce TARGET_PHYS_ADDR_SPACE_BITS to 62 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org With the next patch, the memory API will complain if the TARGET_PHYS_ADDR_SPACE_BITS gets dangerously close to an overflow. s390x can handle up to 64 bit of physical address space from its page tables, but we never use that much. Just decrease the value. Cc: Alexander Graf Signed-off-by: Paolo Bonzini --- target-s390x/cpu.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h index 0ce82cf..6304c4d 100644 --- a/target-s390x/cpu.h +++ b/target-s390x/cpu.h @@ -34,7 +34,10 @@ #include "exec/cpu-defs.h" #define TARGET_PAGE_BITS 12 -#define TARGET_PHYS_ADDR_SPACE_BITS 64 +/* Actually 64-bits, limited by the memory API to 62 bits. We + * never use that much. + */ +#define TARGET_PHYS_ADDR_SPACE_BITS 62 #define TARGET_VIRT_ADDR_SPACE_BITS 64 #include "exec/cpu-all.h"