From patchwork Wed Dec 4 21:12:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 847345 Delivered-To: patch@linaro.org Received: by 2002:a5d:434d:0:b0:385:e875:8a9e with SMTP id u13csp545835wrr; Wed, 4 Dec 2024 13:12:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWL1cRub2Lo4k/NBRqQ5PrsOOl29riCW53T15TuZLO8OOsOjEpTqzSxMwR71cxh4ilhcG7W4g==@linaro.org X-Google-Smtp-Source: AGHT+IE+32b7bW5bla8gvK+R/sWUBv6IVCzYTuuXb5pBcrXj9Lqt44hNPPFANERfzYRTHsVIDSZH X-Received: by 2002:a17:906:846f:b0:aa5:1757:bdd9 with SMTP id a640c23a62f3a-aa5f7f0bc1amr587783866b.44.1733346776660; Wed, 04 Dec 2024 13:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733346776; cv=none; d=google.com; s=arc-20240605; b=Qu+waHgo7KCa+r2D4htv3/g4zaXCPcSJO5qJMHYLCRduF6qTUFDy9vAowCr/z4JHsF IagmIGPlbAJB+CdHUp5Hdo+4W1I43gCbq744GfXfUXRI/qGjB2NsiWOw+NuVYruHQZre gjMQCH7fnezzTvzAQdnBcLqvEyL4EeTu+ctoeS+7+VihZZ6Mk9p2VAwutpiy9YEp+k+V D9kZnX3WM/arOpdnpdErXcJ82Vw7bBd0Srox9dV7B3f9Rr/yXDKitqF2mLRcSP/9GPFl Hp9xr59dkHfN6KdGozf80gkpviaJ3khMoDmo/jjBfZxdjWyINLPoEesldsVrYNip7Vtx T/pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=8VxKFI/0y4LY07W6bm/GbHm9mzNlrCNc2KPV8KgQ4yg=; fh=YYVb3eWio+ub+JYS7PshdpCqVcFGuXbY9LdWytDHIwY=; b=Nd2TUub8DksHQVLpHBU84TmhbTL3Kr3tDlLmawEQnWGw9ms+S2QkCLqujdwVzP2vqb n0rrgmRhoPYmgVyI4wkZNGzM9nf/BLcO+u49HFF/M+iBfbpqxGbhk3/B+MLASvkC+XJP 2w3zqO6d3EHu+3TRTl9UF07pFR3ubO0bDgJqGtWKLjine3D+AmPT/Njh6ONbi9KX/uNG IXZNOVk65jAD358u6xfQOViW1kZ7KpacKuV0nnxh1GdA682UQieRrX6A/yPqsOqMFdMh RUGk0mcRXzgP6/NW7LO03fP5zfqQ1UOcmjYORv85jSu11iuGEW4hnjwuD/1GjL/6XD0q +Okw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=crI0yPZa; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a640c23a62f3a-aa6261f7d67si4377066b.827.2024.12.04.13.12.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Dec 2024 13:12:56 -0800 (PST) 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=crI0yPZa; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIwfy-0006Mm-Ea; Wed, 04 Dec 2024 16:12:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIwfw-0006MU-RJ for qemu-devel@nongnu.org; Wed, 04 Dec 2024 16:12:48 -0500 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIwfv-0007kK-CP for qemu-devel@nongnu.org; Wed, 04 Dec 2024 16:12:48 -0500 Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-7fbbe0fb0b8so183287a12.0 for ; Wed, 04 Dec 2024 13:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733346765; x=1733951565; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8VxKFI/0y4LY07W6bm/GbHm9mzNlrCNc2KPV8KgQ4yg=; b=crI0yPZatGlMK1OlwQLrEh/LmTizDCdmXGEWRRVNxDPEwsN/uvJUuzYuGgG6c5NJL3 eLwIW8ORvV+tOGO69ZEig0ifgWa2ezNJpq2oPdfsmotQEW74z1QGip/iVtwDfM+2ZSwB OYdagZvKdoyAJnF7JuBKaoOVWmU/SVvTPw1nJKaWx/wgLTod3WJDOsmEJTM7+e2FoUrU anxMzTQCs5OSeNPB5+ZwkpC60+Hsz6mZZjXhyFZwT/oBmngXpjtYZ9FpqYu0xBvPX1n8 lXhnDDziKHWeU/v/UvoPuOHu2fHEQ/l3rY8U12X81rQtRSiazFAuyb1OdHbzu3nvaaUz OH5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733346765; x=1733951565; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8VxKFI/0y4LY07W6bm/GbHm9mzNlrCNc2KPV8KgQ4yg=; b=mdtCLhy5xIAs6JLnzQOYl/GEOR5kmBLXAt8IEdn3Sw0MpHmGXPfSxUn/ZgO4tA1o4T wHSle1Cq8CzBueWpnQRh7ab+sJbaYrAfs4tGjOI849RTAaxAe+VJ34EbtlLYFn4muT7E 1SN9pG0D+5x60H/sj8a6DnDwdlVqLoL1P7eZb3GXXSbnt1PmWErW2bK4nTsNYRxKcDJK nUtQt2+UxcFLHBEEdoi9ONYF2o4jxtNzfIFhh/Sox7HeYU+IPHHOo8eu41wQvyszfglm YhnFMZW4yML0mItK1bT+BedQPZUG1KujDNJVqVJqIDfOh5NZQ5PzFU9QVWtsA4EOlB3V IV2A== X-Gm-Message-State: AOJu0YyVue4AInkU2eQVnL0mOo1tbypTauGGNl9RNXqhc9/U+UTIAGDk Di/ZQwT1lH8jGVp7SkLWq59lDJ+gMBxsI1O8pxLc1ZHv8wgfPRZ5lZHLF0EVdx4jgoiGnWU8gLZ RodE= X-Gm-Gg: ASbGncvtDGsxTPH0MkxmEGmyI04bSTwqp/pRqC/58KXqus/eaVOBlDXPz6yVvc9wg4l h7F1yGCLtZfEs1jjH8JVaS3tZJwHDDHpPPDlWo8ywdtsHD6IQu1TdVr6D7axfbxrrOosdPU4wHm YOWeE8GaPzaq7oPjgSt+GV5kHMHz7g/Gob3giA/K96Dg6Yb42rgyNBnO1hUzIoHOsFABu7pyj8C vv4bhUzpbO1pHGHRv/19byejBEZsta2Ir9kIWw9Bapd1oCxUatv3Thqvdp2FP+Cmtn8exuCYo22 TbTDKxPk X-Received: by 2002:a17:90a:ec90:b0:2ef:19d0:2261 with SMTP id 98e67ed59e1d1-2ef19d02442mr8604205a91.16.1733346765423; Wed, 04 Dec 2024 13:12:45 -0800 (PST) Received: from pc.. (216-180-64-156.dyn.novuscom.net. [216.180.64.156]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ef270089b8sm1905830a91.14.2024.12.04.13.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 13:12:44 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Laurent Vivier , Paolo Bonzini , alex.bennee@linaro.org, Fabiano Rosas , qemu-arm@nongnu.org, Peter Maydell , Pierrick Bouvier Subject: [PATCH 0/2] Change default pointer authentication algorithm on aarch64 to impdef Date: Wed, 4 Dec 2024 13:12:32 -0800 Message-Id: <20241204211234.3077434-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x52d.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org qemu-system-aarch64 default pointer authentication (QARMA5) is expensive, we spent up to 50% of the emulation time running it (when using TCG). Switching to pauth-impdef=on is often given as a solution to speed up execution. Thus we talked about making it the new default. The first patch introduce a new property (pauth-qarma5) to allow to select current default algorithm. The second one change the default. Pierrick Bouvier (2): target/arm: add new property to select pauth-qarma5 target/arm: change default pauth algorithm to impdef docs/system/arm/cpu-features.rst | 7 +++++-- docs/system/introduction.rst | 2 +- target/arm/cpu.h | 1 + target/arm/arm-qmp-cmds.c | 2 +- target/arm/cpu64.c | 30 +++++++++++++++++++----------- tests/qtest/arm-cpu-features.c | 15 +++++++++++---- 6 files changed, 38 insertions(+), 19 deletions(-)