From patchwork Fri Dec 14 05:23:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 153743 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1672716ljp; Thu, 13 Dec 2018 21:27:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+ZyJQPsQ2AOG3h+InAGrbOHPfZ0ZQ9zWPZHO9G8PZHPTIhEUMCafynPv7CN0SUU0AV9nd X-Received: by 2002:ae9:dfc7:: with SMTP id t190mr1318168qkf.43.1544765240295; Thu, 13 Dec 2018 21:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544765240; cv=none; d=google.com; s=arc-20160816; b=nkZb078gr3JA70hDLurZNRseLo7AIYh/YJIQg/Vamo7oFWRZlAdVcWQfUI3SHhppS+ 129pwHL8gJy4ymuTVcYqApwsOu5NJXQlVdRufnWCcqXpVR5DXJvSfZase99cSh/vEIKa yQN/EqhYIEVSCJTG64/M5ZmBx166J5s1Vs7MJraNQLu1KyqlgVHxm8PZQG4FnZ1z4oTF 1XrZT7O7/6V7GbwHlODdWGsIT1Uo8hhkSEZKZ0jCDf2l4eh/vLzx7pNRDaQl7CodpZ0F tta1CTRKjmS/wUfNpRuyez/CsSOjjhdiX9SDiMPMKMgYuM1y5H6wd/jMIXEF60/kkw5V aIDw== 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=oMvxXaboqF6VD4oKnmLx+fHZ0ZKJbJNxsu09DdKU2zw=; b=OHnSycZXX0ujYUS98EWt5eguIi7wcq9/V9prG7zizQbVGYo3crHDlBUbTVD+zXRljg NnTyLkNx6oFwTVRNPeu6IHncmHNVHbROvkavRynZKra9n43Py2qBMrAvwWa3KTzB445D sg1gw2q+u52MRiYWdHFbkmFFC3yFf7qkeR8Z8dxXxZnqMPzrU+qWKmSmIVy2G7pdC5Jg jzATtJirn8D7nJuQbA2MjwZ1kgaqEAWr+2+422qWC4vEYT1t/bCnxZYKQPymj8PuRxI5 xSsId4sivHHwNfSoIh3A+NenDw5kTe9tCibGqWxcMYchEnvav6ePox7611m4AXaXR144 1WIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FuKEPqBw; 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 a6si2812679qtn.52.2018.12.13.21.27.20 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 13 Dec 2018 21:27:20 -0800 (PST) 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=FuKEPqBw; 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]:59439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXg0N-0005jN-JO for patch@linaro.org; Fri, 14 Dec 2018 00:27:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXfxW-0004Oo-C2 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXfxP-0005J7-LP for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:21 -0500 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:40157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gXfxP-0005In-40 for qemu-devel@nongnu.org; Fri, 14 Dec 2018 00:24:15 -0500 Received: by mail-oi1-x232.google.com with SMTP id t204so3623784oie.7 for ; Thu, 13 Dec 2018 21:24:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=oMvxXaboqF6VD4oKnmLx+fHZ0ZKJbJNxsu09DdKU2zw=; b=FuKEPqBwGdibJccVdZPAh6gtGJ5XMA7idW8KYn7t8kAV/FJZUzHMw+6k7/ou0ixVeF GM0WYvAmB7qbNw8BbFyY0MfqcpgUD2Mzwllo9e6j+Zs5sJVb2QjZG0CUjERqk8pYT4xZ bgKWvpzuwnWLtAbWAR6bsq6/UYtLGeWam5VBA= 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=oMvxXaboqF6VD4oKnmLx+fHZ0ZKJbJNxsu09DdKU2zw=; b=QKDZLMT0yKiyRgF2JeAk9N7bf6+7crlK/SiACS/Qu0+VUXVCzXDloPMf6Qgc1RAWRU sJqK/1D2QJ/jJ3z/hc7/CXvo03kxUmrgJSnStokCUK6LU8V9hD/xYUEUUuuQfitGhnMM BbZD7VPwT34GwsWjRp9D7Dqx5yckHB/weYv3ftrd5ZJm4meBTKm1rLpeXpxzmaREsiRG 0qi+HUDEDz0wf08Czz8GzeuUtUIBLIuwgJEbCrJ+ahTNntN9FRQFq8zCG6uzuGkb7lse kAPZgEP2j5ibqf84O+1mcqWtUHME0dZTk5IGpvCLnvwWNhuinbAwZlN+FPhQDqsGAkst Kxvg== X-Gm-Message-State: AA+aEWa3tTrUMPcXJEeEcNgh0dXZZIWY5xGZXdFp62XbSD8t8TijBIOf sARjzi4TKr7ZOBrLN/ZLZRDyAclvZE/WRQ== X-Received: by 2002:aca:37d5:: with SMTP id e204mr947051oia.134.1544765053284; Thu, 13 Dec 2018 21:24:13 -0800 (PST) Received: from cloudburst.twiddle.net ([187.217.227.243]) by smtp.gmail.com with ESMTPSA id r1sm1845379oti.44.2018.12.13.21.24.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Dec 2018 21:24:12 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Thu, 13 Dec 2018 23:23:43 -0600 Message-Id: <20181214052410.11863-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::232 Subject: [Qemu-devel] [PATCH v2 00/27] target/arm: Implement ARMv8.3-PAuth 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Lots of little changes since v1, but many of which are noted within each patch. This version works in system mode, using https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=for-next/core r~ Richard Henderson (27): target/arm: Add state for the ARMv8.3-PAuth extension target/arm: Add SCTLR bits through ARMv8.5 target/arm: Add PAuth active bit to tbflags target/arm: Add PAuth helpers target/arm: Decode PAuth within system hint space target/arm: Rearrange decode in disas_data_proc_1src target/arm: Decode PAuth within disas_data_proc_1src target/arm: Decode PAuth within disas_data_proc_2src target/arm: Move helper_exception_return to helper-a64.c target/arm: Add new_pc argument to helper_exception_return target/arm: Rearrange decode in disas_uncond_b_reg target/arm: Decode PAuth within disas_uncond_b_reg target/arm: Decode Load/store register (pac) target/arm: Move cpu_mmu_index out of line target/arm: Introduce arm_mmu_idx target/arm: Introduce arm_stage1_mmu_idx target/arm: Create ARMVAParameters and helpers target/arm: Reuse aa64_va_parameters for setting tbflags target/arm: Export aa64_va_parameters to internals.h target/arm: Implement pauth_strip target/arm: Implement pauth_auth target/arm: Implement pauth_addpac target/arm: Implement pauth_computepac target/arm: Add PAuth system registers target/arm: Enable PAuth for -cpu max target/arm: Enable PAuth for user-only, part 2 target/arm: Tidy TBI handling in gen_a64_set_pc target/arm/cpu.h | 171 +++++----- target/arm/helper-a64.h | 14 + target/arm/helper.h | 1 - target/arm/internals.h | 62 ++++ target/arm/translate.h | 2 + target/arm/cpu.c | 6 + target/arm/cpu64.c | 4 + target/arm/helper-a64.c | 629 +++++++++++++++++++++++++++++++++++++ target/arm/helper.c | 500 ++++++++++++++++++----------- target/arm/op_helper.c | 155 --------- target/arm/translate-a64.c | 534 ++++++++++++++++++++++++++----- 11 files changed, 1581 insertions(+), 497 deletions(-) -- 2.17.2