From patchwork Thu Dec 19 18:32:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 852044 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp1650200wrq; Thu, 19 Dec 2024 10:33:27 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWVcuu2wfQD/hjAlvhu3tjQP4IWAYso4hjhcXL22JRUkvCSrC76rxJeGeFozaVvqLxoYdR0tw==@linaro.org X-Google-Smtp-Source: AGHT+IEPvxgz+VXmLAbb4d9GRdj5SfJxFwyFMMp+x6k4TU5ez+oML795+gtMVF0yXQ8vVLfje+MF X-Received: by 2002:a05:622a:1a27:b0:467:79eb:4a16 with SMTP id d75a77b69052e-46a4a8b6c38mr445931cf.4.1734633206979; Thu, 19 Dec 2024 10:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734633206; cv=none; d=google.com; s=arc-20240605; b=PvOvlnDMQWYWMutlKRG+xDkNSHXbDgSNvRnsSzFbWWLJ+ymThGAFcAbiOGUMF42SzO jjCYZq6C0q7BbfFJA5oIVmMOQzexOG4EZEXUeA3HGtvg7UHdfle2lfA8b2JGXgKN9V3t IEf6TsWocSBpRi4tngImLgUccqSl8a3AVLKFh0dIcB+6wIknb5gPCjcPibS+GXRnY8ok 5QMCGYAhzj6xi4PuRj4ZAbJQsyyMoKysDu/DfzRkGLerFh5YhDPhgpIySGlg4e5gPOQL 7C5HTCdtG6eu92/4Z7Anch1CvHkTytVRx1NYp1T4KRp6ouY5VFzgHjKNa49aqr+nThJ4 RwiA== 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=NoMVdzf7dEnl3NQdwGbML5tlJY5JdwY7hUGe8zVB6Tk=; fh=15DwK79D2poCFMOXmyE/Rt20KtPvvEZtK1Roylr48Rs=; b=gGYSYxoSGOUcBI0L14zaYCCDUDTC8l7yQ2mJKlAR7WZQ2087rNy7R560wwU9GR0bQY ZWU6CwOVwsQ2PImSUJwLfypsoqhMb+M21/7BNtR2LBmVu+kFAPB3qvo99h14nAsiLy49 chCj0nMyz3Qmz+cE3gK0kc/7jwKJ6eQcSaAnIfe4CYXWPoNGro5ljnCDWlsqHyF+HuGc /8tprJvTJjfq/MRcr61ZgwPBD5944ch8ypvXGA3pSaeCl0Uw6Jxv+/kenSst4PPT5S3D OsoD2+r6lIAUNfd00+ZCQEcPB1t/iR0srE6f9RSCqnTnk4KVzBem1PHsM1RLxWLHfp/8 ABig==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZBgWtrMl; 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 d75a77b69052e-46a3ebbfc93si18909061cf.447.2024.12.19.10.33.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Dec 2024 10:33:26 -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=ZBgWtrMl; 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 1tOLJu-0002xH-5D; Thu, 19 Dec 2024 13:32:22 -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 1tOLJq-0002wT-Cd for qemu-devel@nongnu.org; Thu, 19 Dec 2024 13:32:19 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOLJo-0002aA-5Z for qemu-devel@nongnu.org; Thu, 19 Dec 2024 13:32:17 -0500 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-7265c18d79bso1330782b3a.3 for ; Thu, 19 Dec 2024 10:32:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734633134; x=1735237934; 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=NoMVdzf7dEnl3NQdwGbML5tlJY5JdwY7hUGe8zVB6Tk=; b=ZBgWtrMlvKb39i6v0ZmtnGMt8pyJoS81VWnjLD0eE3Q9IvsIjUEjuER+5HjmobFPJU wCLXxa2bSI5eiC+i0SN7sphjPOKkVIMC7e2oz4BnlUtszfV5xUGlND0xI8aYkICt27Pp 7xqHQl9iTQ0mhHMHnksoqPX8yzmBN1uqiyQTtZRAcHwp4VhdHTsJvO3njEP9tB+sUQfG c98iVfC9U5FDapr5fGgbu55rhuA5WhJSTque6L5V3iRFTyZiuZkqfp3rpvMFsDnH6e3e 0+T1X4tTkSO1qL/wDWtySqHzjWR9lmRT9Po5xdYCLhlpd5ThsSRLyUeVINqElP6noOaN JZUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734633134; x=1735237934; 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=NoMVdzf7dEnl3NQdwGbML5tlJY5JdwY7hUGe8zVB6Tk=; b=en7DhvtYJA9VqJH55seTWn8cOm+L2ZBbAsFuI+L6Kwlc36mAShrwRuvDMV/Qj1lc2H tL27cDhwaugzVL2BigLnBzVq/1AzxhajsrPqQWaneJUsBiRF0crxAXEUazHjLc9zak3t VaW/One+yvz51mAjxz8/8GWDBigRO08L0qQalm6akURMozPBMm2f4asVk4wLcanXwn30 OTZki+vuxcDQKsXAtrPZ4gD6yYohOZLg/iPKH140X81nvU/JVjq4Ul9elLVu486Ujsfs AEwc6rfnJW/02ax/6S5GuW/eB4r5AIzUJg52GOK6KTQc98mlFt2t0IH3qlcTYHhiuRaT 0KBQ== X-Gm-Message-State: AOJu0YxC6LmmtXSImV3sb2ao5hKznCbPzNqiNj4PEMI27001KB4g+tEs i5IoEZc/zuFMDkiiCN2b/SlOl+a0CrOUgdcTHB7M/tWx9y40MXAyKznBW9RLkcoGbXLjzg2W7Vf 1sTc= X-Gm-Gg: ASbGncu1klf6ml0jooJQrpZhqFkQIG4GsfazfgWuh9EhbaC7lzDzxBE7ajG9tUsw8WT lWy3UlwJCBNnOdneJWib2Mt2edSTdai1FSF1IUS89+Jqp57lDjnsQMlx5MJljhD95Jou7bIXwsA 8oLsaOvEK9dylumGCJjS43/HReiI/ZaSNV3JF/6yW5d2FCAqftQZg8QZ+r4K4DeLdFgX0LY7hOC /I2wmeGijGkHMz+9W4VlTpmUZjkI8Y4+A0pP93saXS5egfS1xbUhg8A X-Received: by 2002:a05:6a20:d80d:b0:1e0:d848:9e8f with SMTP id adf61e73a8af0-1e5e046decbmr235871637.13.1734633134142; Thu, 19 Dec 2024 10:32:14 -0800 (PST) Received: from pc.. ([38.39.164.180]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad90b302sm1624733b3a.175.2024.12.19.10.32.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 10:32:13 -0800 (PST) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Fabiano Rosas , Peter Maydell , Yanan Wang , Zhao Liu , qemu-arm@nongnu.org, Laurent Vivier , alex.bennee@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , Marcel Apfelbaum , Pierrick Bouvier Subject: [PATCH v2 0/3] Change default pointer authentication algorithm on aarch64 to impdef Date: Thu, 19 Dec 2024 10:32:08 -0800 Message-Id: <20241219183211.3493974-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::429; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pf1-x429.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. The third one updates documentation. v2: - ensure we don't break migration compatibility, by using a specific backward compatible property. - added some documentation about migration for arm virt machine model. Pierrick Bouvier (3): target/arm: add new property to select pauth-qarma5 target/arm: change default pauth algorithm to impdef docs/system/arm/virt: mention specific migration information docs/system/arm/cpu-features.rst | 7 ++++-- docs/system/arm/virt.rst | 14 +++++++++--- docs/system/introduction.rst | 2 +- target/arm/cpu.h | 4 ++++ hw/core/machine.c | 4 +++- target/arm/arm-qmp-cmds.c | 2 +- target/arm/cpu.c | 2 ++ target/arm/cpu64.c | 38 +++++++++++++++++++++++--------- tests/qtest/arm-cpu-features.c | 15 +++++++++---- 9 files changed, 66 insertions(+), 22 deletions(-)