From patchwork Thu Oct 5 14:35:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 114946 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp668819qgn; Thu, 5 Oct 2017 07:41:16 -0700 (PDT) X-Received: by 10.200.26.176 with SMTP id x45mr36454303qtj.181.1507214476608; Thu, 05 Oct 2017 07:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507214476; cv=none; d=google.com; s=arc-20160816; b=sXTjFhnNFsmtTIBdzANd+9HgnP4mLViIwSdrgHkRB9n0ZKPKqbnPy4B8IgFNCNHnF/ qiRIZMB0L4F+rcKanzoXTUQVgW9dgKCsHNkJy9E6chYmdLSGXAaxbXOgMe9IpnheHxp2 hpcyLYYk58/hHHn0jN/nhwY6y2N9kJRBAx2KDKf/qe6DzntHPlI6CycS6s+auICiew2m 45VPUYYY/RBVO202eK7QH0tN2MKvkpRo8fX/ntMVdWQtOn+18nNuV7+c+IC8oCyVHQn2 FKT8PAUkyjY+ejMx/8hIhAcbDV47JGW0BZBI7kJaeiTNFS1xdYlLpUPaPrd6yy6d5xKG yWjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=ODLnGjgq+x1Pa1Ljz7xxspfNLrd6SSA4wHa4DbhlVDM=; b=yCeD1/4UNkGlCe9FIjGh9UYF8K6gYNIGkBG+uOOjDhu4TZBRj54uUjNU8eKgZ0J4l2 MSxgiJ3yCG7ooRpyB5ilFIQXTC1oE0Si2xHgns+jnwqEEQdTaCmCncDv4Q/8nVn36Oay XUtUghUMnRnkoxga5zGZU5GnR2OXQaiqwI8fFdCmKCWeCmSKPNEG1wZHtb3acwNxiSiK hwuG9sQDjEq+JFxDo1ESlbFGoJ6goDf4BNWmLmpZZxFWWeK7/PSBkVX4JPve8HJqYVxG okj6aXDOuVS/su3bcn/C9kinxcseKmgb2z7RZMdlbLxy14DXkhCGoh6tYVQ6Mg1AVO+G liLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Nt9lvV5Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id e35si423079qtd.356.2017.10.05.07.41.16 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 05 Oct 2017 07:41:16 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Nt9lvV5Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:40211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e07Ku-0005xi-4T for patch@linaro.org; Thu, 05 Oct 2017 10:41:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e07Fv-0002FR-Ro for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e07Fu-0001rg-UM for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:07 -0400 Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:55451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e07Fu-0001rG-OM for qemu-devel@nongnu.org; Thu, 05 Oct 2017 10:36:06 -0400 Received: by mail-qt0-x22d.google.com with SMTP id x54so25683714qth.12 for ; Thu, 05 Oct 2017 07:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ODLnGjgq+x1Pa1Ljz7xxspfNLrd6SSA4wHa4DbhlVDM=; b=Nt9lvV5QkebYJUDvVuIv7wGyLJAyCyirvjwUiRfnU8iW1YWBJeL9yq+Olr4keM/2Ss 4d2ofgdag7julYQA25Huc8XAz0RYnaOc9YNssF/1iCb+V5Og6kGZ7gxdGEBQcnzyu2yf BpNGB8z9YJx78uHOPxp44Z8wVZ7cRhHKwZ9O4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ODLnGjgq+x1Pa1Ljz7xxspfNLrd6SSA4wHa4DbhlVDM=; b=H79nXkIO98bWmW72FgY6OQeFO4+0w5p/K6O2dNupMaVzhzIKHsfUXMCJSs8C+s32xd Vh6+ZVt6eamYXzcSlm+/nu8yA75X+9ZDHI8ZrQVGaEsp/QXKI6xL+sX3xKMEzjhrMWne 5mLmN5sfTJZTKWQHINetda5iucI+NeNybHfEjJ5gN2+ds/VSNZxznhrrhaxEcfRMxBie RcYdW09wkQrzpefLRbdAidLyBBiWx7471VwVdtXyJiLynu+OhmlQ7DIfLvxsIwGksqLc HZJjJGY+QsvVo/FPud3BlasBZjdKMpzykw1xx0UM2jU4swNgJl7h3lg4mhZVnC65dQFV j5KA== X-Gm-Message-State: AMCzsaUzAaiVbZD62so7cfgH62GXT93t0GKfT1hbuliCnoqo6JHas2sd DQxO8BDMTytku02d81KEhxG1GjWmL4E= X-Google-Smtp-Source: AOwi7QAMyJxlZWDtR1KYWV/uR2yKul/NBQwbDx3aOCboVfRGlZlv3MEwJKp2N+9kJtaKvJdE2CSIiA== X-Received: by 10.129.155.12 with SMTP id s12mr3757267ywg.500.1507214165767; Thu, 05 Oct 2017 07:36:05 -0700 (PDT) Received: from bigtime.twiddle.net.com ([2606:a000:7a4a:b100::1b]) by smtp.gmail.com with ESMTPSA id c13sm8277148ywm.101.2017.10.05.07.36.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Oct 2017 07:36:04 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 5 Oct 2017 10:35:57 -0400 Message-Id: <20171005143601.21584-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.6 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22d Subject: [Qemu-devel] [PATCH v2 0/4] linux-user fixes for va mapping X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, riku.voipio@iki.fi Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Version 1 was back in July, https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg02033.html > At first I was simply going to add TARGET_SH to the existing > set of defines that trigger a 31-bit address space. But then > I realized that one could create non-working va configurations > from the command-line. Changes since v1: * Peter fixes the elfload bug that prevented ARM using the proper MAX_RESERVED_VA setting. * Adjust the arm MAX_RESERVED_VA. r~ Peter Maydell (1): linux-user: Allow -R values up to 0xffff0000 for 32-bit ARM guests Richard Henderson (3): tcg: Fix off-by-one in assert in page_set_flags linux-user: Tidy and enforce reserved_va initialization linux-user/sh4: Reduce TARGET_VIRT_ADDR_SPACE_BITS to 31 linux-user/arm/target_cpu.h | 4 ++++ target/mips/mips-defs.h | 6 +++++- target/nios2/cpu.h | 6 +++++- target/sh4/cpu.h | 6 +++++- accel/tcg/translate-all.c | 2 +- linux-user/elfload.c | 2 +- linux-user/main.c | 38 +++++++++++++++++++++++++------------- 7 files changed, 46 insertions(+), 18 deletions(-) -- 2.13.6