From patchwork Fri Apr 16 18:30:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 422549 Delivered-To: patch@linaro.org Received: by 2002:a02:6a6f:0:0:0:0:0 with SMTP id m47csp628157jaf; Fri, 16 Apr 2021 11:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1A+AL6QFg8mkP9nleswiiZy0WM3eN8G+lpJObfvYem4t4hT/2pJUqkyaP7wsqpgR5tHTq X-Received: by 2002:a5d:88cf:: with SMTP id i15mr4624493iol.45.1618597954959; Fri, 16 Apr 2021 11:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618597954; cv=none; d=google.com; s=arc-20160816; b=kLIjaQ/JUr2IUi2ZhpOlyCtH3BsVCxBhfeq5rOp+nmQryQc8lCVTIELKQ477sgKvYl xv14UGOSQdcp71MnGMqrJ4DlxxMEdfstDl8FWMa16WH5fQ4l72gszMO3Z5rrIOLO51Ew x9Di6jsKU0Be2r1C2CI1Sek7azLxO8j2ZGfdH7xhLPIqF/oQ4LlN74Y6+S2Eu9lnTTsl onlDdvPgumBZKjEaOX2ec9i+ePdtEngkDN4hy7ffd6YfNxfD9hsg/xphDXd/sUZoRYWZ kgvdsRrXDEKbGvFjrgPoaX/iLDso5LcuT4VibfvJW3CPgK5bcObcc00Bgg1XUQI88fh2 Xg9Q== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=MRiN8JGM9eYShplxibiJfAaD7a9FxgKLo1Lkxp1IlB0=; b=WYzcRgTM1joxH3MlF2pi4zpujDWvKeDzrn7mAunzKy2Xt94+RFEhlibGvTixE3fR1i EIH59RmmqIrqUbl/K+AyUh6vWl4DuRigoLC/WizyajFLA4ym3bzugRSjwD4CAerBMAZs Q8iGfYiKlnFFEw+EZztZd6LqyqMJOwk1UINWynlfShcXKvqP3vwUe3rHA0IYUhHDQ8Sd QJW3kc19WGmTQNxQgN4JoRj1UXytIxYHaJmR1kJueA3M23r01CoSK4ln77yJtkKETQFv TpomZn9NWBpzT1tz9haylAMZi9/BvSawpPNwkK8Ywb4mz8Sd6UBDvv7gbT2Nk7JFL0xG Q6xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=si7jIqgK; 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=pass (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 d15si6833445ilq.56.2021.04.16.11.32.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Apr 2021 11:32:34 -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=pass header.i=@linaro.org header.s=google header.b=si7jIqgK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXTGc-0000gg-8n for patch@linaro.org; Fri, 16 Apr 2021 14:32:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXTFI-0000ev-E1 for qemu-devel@nongnu.org; Fri, 16 Apr 2021 14:31:12 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]:40658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXTFG-0003fG-C6 for qemu-devel@nongnu.org; Fri, 16 Apr 2021 14:31:12 -0400 Received: by mail-pf1-x435.google.com with SMTP id a12so18886172pfc.7 for ; Fri, 16 Apr 2021 11:31:09 -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=MRiN8JGM9eYShplxibiJfAaD7a9FxgKLo1Lkxp1IlB0=; b=si7jIqgKlvUT5186r8NpASDthDX/Zo+WjXR7DL/Rn0NiO/C6oLBY9zUfMe+YOa5tYe o0+nAx/ld0jBLJRLIj0vgpHzFYwipV6g+XBu8e0Ovozf18rZx40PhFpw5zz2sOd3YpUE mr+ySYON1cvP6pZA6VNaJVeDkcvEVoR1Bi1wm7rLGiBvOn2gskcuO5UqZKFf0EWXmEXc y6rqyQbRd9CxMgYJynAsxXlA3z+MNs6GGPa5a7tQXjGH1sm8/hY9uCxM+hl8yuBBxSGu PYUFqwtoUy/tjjNrILyGA0mH/aKf3NIBbTM2NibMACHq6yUGfgYbfhJNvsbGEFHoEKeM bjmA== 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=MRiN8JGM9eYShplxibiJfAaD7a9FxgKLo1Lkxp1IlB0=; b=dpdGm6jfVdaTO+fEcW6e5Pk+yiduNyPyDGWTn7Fw5CO3mbT30z+vBAnWQKh4E7vCu6 c87h7Qp3PN1gL1ezzPH83R4G0gq/jSXflXeiWCdaz7qaIm0HDFjtFEOWHO0KiiP1viTT fuIl0sDPKX6foh2n9UzqMrO+9BAhSFq8LVfpd1zu3/taZq7c0CZqZq9YqhVJPihDvWTD QiyJF1FQ2lIFIt0DZevVzVEBjgUPajzt+azQkXGuD3eElwba0XXt9A2GpZCSWu549lCW Hb43T3jzVEI73BsBRi8JyYB0UPOLPGnVcj6StIth/ME2rKcupeQQN+Gpq3aHMUQRkKO9 L9XA== X-Gm-Message-State: AOAM533UllzBr3ZlhB8V7VYLszOQVXLeUJuB5ykbsKew5lOAMX6PQAOK Pqs0puyHmtcoXvFN0Wx6qeTQa0sHGfZzSg== X-Received: by 2002:a63:338b:: with SMTP id z133mr370901pgz.442.1618597868677; Fri, 16 Apr 2021 11:31:08 -0700 (PDT) Received: from localhost.localdomain ([71.212.131.83]) by smtp.gmail.com with ESMTPSA id p18sm3057307pju.3.2021.04.16.11.31.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 11:31:08 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v5 for-6.1 0/9] target/arm mte fixes Date: Fri, 16 Apr 2021 11:30:57 -0700 Message-Id: <20210416183106.1516563-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes for v5: * Rebase. Three patches upstream and a minor conflict fixed. Changes for v4: * Fix tag count computation error in mte_checkN, which when used by mte_check1 in patch 5, caused all sorts of KASAN failures. * Fix PAGE_ANON / PAGE_TARGET_1 overlap. r~ Richard Henderson (9): target/arm: Fix mte_checkN target/arm: Split out mte_probe_int target/arm: Fix unaligned checks for mte_check1, mte_probe1 test/tcg/aarch64: Add mte-5 target/arm: Replace MTEDESC ESIZE+TSIZE with SIZEM1 target/arm: Merge mte_check1, mte_checkN target/arm: Rename mte_probe1 to mte_probe target/arm: Simplify sve mte checking target/arm: Remove log2_esize parameter to gen_mte_checkN target/arm/helper-a64.h | 3 +- target/arm/internals.h | 11 +- target/arm/translate-a64.h | 2 +- target/arm/mte_helper.c | 183 ++++++++++++------------------ target/arm/sve_helper.c | 100 ++++++---------- target/arm/translate-a64.c | 22 ++-- target/arm/translate-sve.c | 9 +- tests/tcg/aarch64/mte-5.c | 44 +++++++ tests/tcg/aarch64/Makefile.target | 2 +- 9 files changed, 172 insertions(+), 204 deletions(-) create mode 100644 tests/tcg/aarch64/mte-5.c -- 2.25.1