From patchwork Fri Jul 19 21:03:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 169267 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4323382ilk; Fri, 19 Jul 2019 14:04:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzUZoCert48kmhIh0OtyO1jz9NLsu4Gvyn4vFA84Aa3pK4gv6PiI4nvTYOucWhB4LlH7az5 X-Received: by 2002:a17:906:4ed8:: with SMTP id i24mr41972068ejv.118.1563570244091; Fri, 19 Jul 2019 14:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563570244; cv=none; d=google.com; s=arc-20160816; b=AP19dxwbwsCChhM+Rz8H+6mf7Nm9UgwId7DbJmgxRgVrfjJ/xtqP9usVzbo2bgBPF1 Fkq6rt+QAztIslY07CkKD7oxeMWVjAx7iDlU9WtUCEtxfujy7bFb/EQPAi+VaE88WSVH 9KYeEIWPGFt6dgs51h/T3UKGxpLjaovk7DVX7Sjf5uGuj1nhewicfkOSZ49XvYalmTuF rM1WR61O1HfHcXQUgZu2fS+089YeivXTMm/1SeAJVVLydQVOa3XeKhoGXcAvTfYKsdPo mncgrDMnpLRChbrFZBvF2R40pavuMQcuyTi/vxpYQbLkRfFdvTEmO25nSQyXfVAWwCrh hXLg== 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:message-id:date:to:from :dkim-signature; bh=6KA+gc1dIKgd05kqZ8UxzAGdqlOGfEAi9ehKvHg8DoQ=; b=n6pGVCOGT+Q7RZ9uOoJkrmiyZftERzKFWTAzcWMOI6oDNaGXfr1FKP0xQiuhHLkGaR tJ6GXkOW/qi6esksEKGFEBqlqqiS6ioxsYhTw4RraEwGulkxMyak7WESXWJQYMhrLU0p BCHBuQQ2ypEoNTDgS5zF1XgVJbhTULxo9avQ0N053NUI8adLRlUY2PFKHbyeSI82O5mB 3KFN8ruH+jZLwVhiOqzeQl+dKip/DwQwCF3z4CJ5o7/QZRv8W7Ol7eLcJ8ZYQMInhSuw 6/sqVCe0/9pcD+IXr4GmZhRvhHgJX7AzgYl21RRz5KfMKB3uTBbprqEt+GikT5LRSp1k REvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NEAYZSK0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id sd23si623742ejb.182.2019.07.19.14.04.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jul 2019 14:04:04 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=NEAYZSK0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:48146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoa2s-00048l-Lb for patch@linaro.org; Fri, 19 Jul 2019 17:04:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54877) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoa2P-0003Eq-AS for qemu-devel@nongnu.org; Fri, 19 Jul 2019 17:03:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoa2N-00055T-Ht for qemu-devel@nongnu.org; Fri, 19 Jul 2019 17:03:32 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:37904) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoa2N-00054H-6Z for qemu-devel@nongnu.org; Fri, 19 Jul 2019 17:03:31 -0400 Received: by mail-pg1-x544.google.com with SMTP id f5so6143349pgu.5 for ; Fri, 19 Jul 2019 14:03:29 -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; bh=6KA+gc1dIKgd05kqZ8UxzAGdqlOGfEAi9ehKvHg8DoQ=; b=NEAYZSK0aJCFjG/tbry43VvaWRqmMzndg4URBM/4qwbWexneungCUeSUoCQwzmCka3 R8xTThnfHWe/E5XQ8NOqWZjGLNJ3hPNqcjvevT2njYW+IRgZgwm6ABi6i2kYWE5htTi+ 7Wx66YOCbfWwWD3qtUQ+p5RxKOlpuIxQbTunTIRe0u+wk6LlF5MJ0b7orhFOOGXOf7TN AAahMzuxjJtvfvBCT2RD8sdBpkOMZ9S/ASHZL2eixnSQZzMNbWzijaXF9gwP0YhTNfE4 Wfew93qiE6RBXCdhDVJPmxBur3PRhCF2ONC62oSLkSEi95bBQbssW1fC8JBRC6Z0xWNK /YIQ== 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; bh=6KA+gc1dIKgd05kqZ8UxzAGdqlOGfEAi9ehKvHg8DoQ=; b=Wi/dUitwuDGBC3W0jpmEZ6apsl5rFas9xnGEs88htBmNyyhANQge9ohvmy5xwn+J5m EwlDExGGeK6GUdLuFTI2Gpjfy3CUTqNGJhHn7rcvN2UT/Xcy8DaXuk4VjxrZsRGMX1TN 1FHsan4rXDYxQBBq059q03UvauIH2/jpT5Os0CxZxH4NZjPhbBwPpkw1dJVPW1E5SxDB tizjiiuEq4q7pAp7FNAAW0gMuUbITdj6vY2zO8U4FGynWnaWmcfOcZh2+4P7VgMpvVGX I6Spb7JntgHQVUfE7QkW3EiP7SOSdDqvJTClWNkEBkn2qeKEM4VFdXOQwVbpGDNzDXSX LLqQ== X-Gm-Message-State: APjAAAWHAHWQMrdzfXkZlo8FS+DyteS65/FPXpCcnoQgml1v/eBy9gp8 xQ68jrSvXtVu1zNI2/DSWtQMZDYK7J0= X-Received: by 2002:a63:ec03:: with SMTP id j3mr29544117pgh.325.1563570208269; Fri, 19 Jul 2019 14:03:28 -0700 (PDT) Received: from localhost.localdomain (97-126-117-207.tukw.qwest.net. [97.126.117.207]) by smtp.gmail.com with ESMTPSA id i6sm32724751pgi.40.2019.07.19.14.03.27 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 19 Jul 2019 14:03:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 19 Jul 2019 14:03:02 -0700 Message-Id: <20190719210326.15466-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH for-4.2 00/24] target/arm: Implement ARMv8.1-VHE X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, beata.michalska@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" About half of this patch set is cleanup of the qemu tlb handling leading up to the actual implementation of VHE, and the biggest piece of that: The EL2&0 translation regime. Testing so far has been limited to booting a debian 9 system with a 4.9 kernel, and a fedora 30 system with a 5.1 kernel. Both have KVM enabled, and both report enabling VHE is successful. r~ Richard Henderson (24): cputlb: Add tlb_set_asid_for_mmuidx cputlb: Add tlb_flush_asid_by_mmuidx and friends target/arm: Install ASIDs for long-form from EL1 target/arm: Install ASIDs for short-form from EL1 target/arm: Install ASIDs for EL2 target/arm: Define isar_feature_aa64_vh target/arm: Enable HCR_E2H for VHE target/arm: Add CONTEXTIDR_EL2 target/arm: Add TTBR1_EL2 target/arm: Update CNTVCT_EL0 for VHE target/arm: Add the hypervisor virtual counter target/arm: Add VHE system register redirection and aliasing target/arm: Split out vae1_tlbmask, vmalle1_tlbmask target/arm: Simplify tlb_force_broadcast alternatives target/arm: Reorganize ARMMMUIdx target/arm: Add regime_has_2_ranges target/arm: Update arm_mmu_idx for VHE target/arm: Update arm_sctlr for VHE target/arm: Install asids for E2&0 translation regime target/arm: Flush tlbs for E2&0 translation regime target/arm: Update arm_phys_excp_target_el for TGE target/arm: Update regime_is_user for EL2&0 target/arm: Update {fp,sve}_exception_el for VHE target/arm: Enable ARMv8.1-VHE in -cpu max include/exec/cpu-all.h | 11 + include/exec/cpu-defs.h | 2 + include/exec/exec-all.h | 35 ++ include/qom/cpu.h | 1 + target/arm/cpu-qom.h | 1 + target/arm/cpu.h | 259 +++++----- target/arm/internals.h | 62 ++- target/arm/translate.h | 2 +- accel/tcg/cputlb.c | 77 +++ target/arm/arch_dump.c | 2 +- target/arm/cpu.c | 2 + target/arm/cpu64.c | 1 + target/arm/debug_helper.c | 50 +- target/arm/helper-a64.c | 2 +- target/arm/helper.c | 985 ++++++++++++++++++++++++++----------- target/arm/m_helper.c | 6 +- target/arm/pauth_helper.c | 9 +- target/arm/translate-a64.c | 14 +- target/arm/translate.c | 17 +- 19 files changed, 1058 insertions(+), 480 deletions(-) -- 2.17.1