From nobody Mon Nov 23 22:45:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1791383525; cv=pass; d=zohomail.com; s=zohoarc; b=HYhrVfiFoykbwfcuONK4+iS7Uqu13zXDzIOIyFJj2c8JiBVFD0FpEo/515QM0t3UEyl7Bc3gTvecljT1i/jxZmZt0UTv4hdBNFK3Hde7NqoZSxttnxW4JBtfd3qOq9xX1IuzlUzE4VjgNzqLv01UG4uIrOSSI+clCZ9Yvo0t8qA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791383525; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=e1k3d/RJ0g6r3Fac+Mwo9TkBEpOBTeJbujfVfJAO7g0=; b=FwbHoTNUWQUOi9MnLzV9+907W2aXyG8OrwSVBkttNrVJVOgo7ttdg0epGwsOSJVPz/zBaPolDB7b4Sk0BtfIUO6CQ/8kaMyJvHS/9mcN5AwynkinTWeJQyhyK31Aj9+yrzKzuI/g3+GfUOfwgQ/ZdJPz9iApx3FWPN8Jxp3pY4c= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1791383525275241.34761705491906; Wed, 7 Oct 2026 07:32:05 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1442424.1659984 (Exim 4.92) (envelope-from ) id 1xESgH-0006j7-Sp; Wed, 07 Oct 2026 14:31:41 +0000 Received: by outflank-mailman (output) from mailman id 1442424.1659984; Wed, 07 Oct 2026 14:31:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESgH-0006j0-Pr; Wed, 07 Oct 2026 14:31:41 +0000 Received: by outflank-mailman (input) for mailman id 1442424; Wed, 07 Oct 2026 14:31:40 +0000 Received: from mx.expurgate.net ([195.190.135.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESgG-0006dS-9H for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 14:31:40 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xESgF-00CsYD-MI for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 16:31:39 +0200 Received: from [10.42.69.12] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6ac657be-e002-0a2a0a5209dd-0a2a450c8f70-26 for ; Wed, 07 Oct 2026 16:31:39 +0200 Received: from [52.101.53.64] (helo=BL0PR03CU003.outbound.protection.outlook.com) by tlsNG-d25034.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6ac657ca-f479-0a2a450c0019-34653540e761-3 for ; Wed, 07 Oct 2026 16:31:39 +0200 Received: from CY5PR18CA0008.namprd18.prod.outlook.com (2603:10b6:930:5::11) by SA1PR12MB7222.namprd12.prod.outlook.com (2603:10b6:806:2bf::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.472.16; Wed, 7 Oct 2026 14:31:33 +0000 Received: from CY8PEPF00000055.namprd05.prod.outlook.com (2603:10b6:930:5:cafe::79) by CY5PR18CA0008.outlook.office365.com (2603:10b6:930:5::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.472.20 via Frontend Transport; Wed, 7 Oct 2026 14:31:32 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by CY8PEPF00000055.mail.protection.outlook.com (10.167.247.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.14 via Frontend Transport; Wed, 7 Oct 2026 14:31:32 +0000 Received: from espagarciav-lx01.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Wed, 7 Oct 2026 09:31:30 -0500 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nAt+MNgc0MzGi87zXm9MoD/GFu7cGp1edZXzixLmZeBejxcHKFfVT9oD0PRRRdk5FOR5UvoRzCN8ht1B3Z+4CYPjlbhOhK7aVE1AczLl3mZXmT+K8qKwRbF1BunqkY24UcvtYKcKGmOFskwuw94szvVmqbBA6zzWpadlEgM+jxjakLJO5e1hWwu7ctuFGe8W9CEq/D8niAaQAHFoAfmMCWT8HjFjAd6MIOx5lnfMyM+Rv7Dvsy1z3Jp6s+YDuOZZSXFX2PDmK0Cd5O59FynC2RuMLuIA54sexEtvG3gVk8ETuh20RHMLeHg3JWgUx2+PKlbdLkZuClg+SSbNDAIYAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e1k3d/RJ0g6r3Fac+Mwo9TkBEpOBTeJbujfVfJAO7g0=; b=SUjq8F5Fuk/9IN6RjwrjeFRILLy0Tou26j6y1ogGokdigdtcHKsYBAdKK/w7G72MaBXCPyfJxOrPb8PEJXEqgb+QhXs94UlhETA0xaHfAJZ3a48OsV5UeuUNNm0i6LOIt7RmmlNGhrEgeA+3xRRCvPa1rCy5HJZ12igeM8uMlVl8pG5oiHyfSeubAzLzXOaZUGzl4L9MqPk3ZYdoo2+5v8zFneSsmB5vLrvJhiU86Z0+VYvo8wt6T3HrH1SOKlMWCtwWq+7WKZiINH54U67E51JOM4uj5TFr2hdHngboIi+fHJ9Pv8yzOSWSFz5I0qjZWlx2eXh10k/zIGfXFVpiHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e1k3d/RJ0g6r3Fac+Mwo9TkBEpOBTeJbujfVfJAO7g0=; b=Fn6+oWaDiqRRzNq4nMWr0cbD49NmYzBQuZ7xZqy93D8jNPCyWY4vInFJa/tACU2H+GcuPtaMATbt1R4IfjvZgEyr9cZ85At6CM1IoxpsFZ7l0C1ENEJDJwiNVtdb6eTc0HWKIzHDjaojV+H0fhiSTVLurjo0oHGvDVT/wztbybA= X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Alejandro Vallejo To: CC: Alejandro Vallejo , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , "Volodymyr Babchuk" Subject: [PATCH v2 1/3] arm/nospec: Make nospec helpers always_inline Date: Wed, 7 Oct 2026 16:31:06 +0200 Message-ID: <20261007143117.757375-2-alejandro.garciavallejo@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> References: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY8PEPF00000055:EE_|SA1PR12MB7222:EE_ X-MS-Office365-Filtering-Correlation-Id: 833effc0-e0ae-44ab-9a62-08df247faf44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700016|23010399003|82310400026|376014|10067099003|56012099006|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: QGlXbn4Fplj1jU+TP0IoPKn1HgfavMWr4DTMZenEmjop+HMHEjwC8PlsD5bkGMxHlLFiM8GEuLKCLb9VAGuSN+HmlUCxs7PiUg40WBtC4I0K9rMT52fRRROpZ1J4BeU74begvUzi531hCWKAwnmsSl9DwJS38usEisFz4HB8etuWbavVTD0z55u7XO7dSVquzBtxo3AQDgQvZBiWqJw3ZV5tAra0mU2ov/jbeUz0O4WbOqdokvkQPcIuDhJj8Ua9bYQFj6EgpL23F3TpyKCowdJLxzw3/5ZPnGP8tvIOfHBKS6E2F4zRARwn5y6TkYeukNQWRhJLHllpT65eo7mK+Do7ewlOi7GLCuJ3sIHLd5n7FBY0QAWd3eUMRZnYPXFLU0bOpwq3kfXKzM2OhUZ1sexlHkKoIKVKw9vL84+vhfAj3SwyzpWy0FU2WTCrWKAPPSANCRlSKJ9hYqYfjQDmGmCI3rvfnk+FGVuUyix1Jm4bYg03O6uYcDMEa5Qo7qWV1UD1C3cmWavxE5ed8Y0GOdcjcTGwkFxsjFry5hTqz8Fu8Agi/hQ/l3ARn3Tb7KqaF/eL+f6B1/m8NGHVa3FIG3NesYJ6S9/wSb2tQU92APEwUj2cv8MNGdTy9ePO8R3+0viQWY9JUPqnuNEe00U1Z+xBmYXsSgh88kzTFPeqm4LASFQUWqZRoNB/3PlGx8R8GZ32iWtllAdTKYpiHLj1uQ== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700016)(23010399003)(82310400026)(376014)(10067099003)(56012099006)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JRt3OLKHyUeEKvE7Ve4m/AexKm54Nlhw1SKfX1/VvGLANw4wuAWnbabMllpYBCCYu23ANQ1r8fIdeItj5uhKejof1odY1USjf5gBSZLwaREeD6blk7gYyDrcXFjnUPS/LaLsDP/NUKCYob4Nb9CG1DF8EI4V8hByMnwYp3u/LFtcK2Gp8pW72tKWfjHUeWKaNtK9gAg3ygxDdQABmMurlWbxHQiez4Jv7Mi5WQcztg/h2ZXrsbhgKNJt8Mhkv9N4LgtPUyjHWPFEMnM1iR6jPSBi9eR1nAekUiRSMNJL/Os++ajUTOJ7MZol3HELiwhXMcAIrP+tzfXuF63qQFcNsQHl+AUZqr38NewRHVDdUBr61rPu1QntJpA8uaFcQ8RJ1L/Gp4g35jjl114UMCx++D5SBzlK/8xht88VCXV2Y+yhBL5bNsUDmyPyrx84pTL1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2026 14:31:32.9216 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 833effc0-e0ae-44ab-9a62-08df247faf44 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY8PEPF00000055.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7222 X-purgate-ID: tlsNG-d25034/1791383499-00ACCA5B-6990F1D7/0/0 X-purgate-type: clean X-purgate-size: 998 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1791383527478158500 Content-Type: text/plain; charset="utf-8" While today they don't implement fencing in a way that would block speculation, once/if they do they'll absolutely need to be inlined, even if -fno-inline is passed. Signed-off-by: Alejandro Vallejo Reviewed-by: Michal Orzel --- v2: * Removed -fno-early-inlining from the commit message. --- xen/arch/arm/include/asm/nospec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/include/asm/nospec.h b/xen/arch/arm/include/asm/n= ospec.h index 9c70eed605..ef0d8ddd01 100644 --- a/xen/arch/arm/include/asm/nospec.h +++ b/xen/arch/arm/include/asm/nospec.h @@ -12,12 +12,12 @@ # error "unknown ARM variant" #endif =20 -static inline bool evaluate_nospec(bool condition) +static always_inline bool evaluate_nospec(bool condition) { return condition; } =20 -static inline void block_speculation(void) +static always_inline void block_speculation(void) { } =20 --=20 2.43.0 From nobody Mon Nov 23 22:45:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1791383539; cv=pass; d=zohomail.com; s=zohoarc; b=PQxXm2pf1zcs7D6AWaHjwDoIRwqgX4Hu9x1ny1+LlNvM8F6VQDalX3WlmfeENq9gj46tehARjFtARIFhrFwI/3JmdzLzSWoC8Nf7whbYNyHT2ZDR/cjB6scjzYFUG2qM/brBiQeLFCLV/Dih2vtFNinN6Si2e0bdkI2Tb7Fx+RA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791383539; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QpzggtEvc89d4Zq2S3JWjnl+sYf63o/UJpx7GfD7Wis=; b=et2hm2ZriCiYfvmIEKxhDLFxatfXJlkmNaFXC+GNCOtRF/ezPdRwUJsrVyggJFLbAgMThO35u7g5ZuB8YOKA50nRqr9Gc0O7TKQ9gb+RF135pAMPf4darkYQDN3LgpeY9c0YjZX1NiLDJFlPkMeK0xSrgySfypdfDZmTGxKntvM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1791383539236368.7542208781655; Wed, 7 Oct 2026 07:32:19 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1442427.1660003 (Exim 4.92) (envelope-from ) id 1xESga-0007OG-FI; Wed, 07 Oct 2026 14:32:00 +0000 Received: by outflank-mailman (output) from mailman id 1442427.1660003; Wed, 07 Oct 2026 14:32:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESga-0007Nj-9J; Wed, 07 Oct 2026 14:32:00 +0000 Received: by outflank-mailman (input) for mailman id 1442427; Wed, 07 Oct 2026 14:31:58 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESgY-0007Lj-KZ for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 14:31:58 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xESgY-008T22-0l for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 16:31:58 +0200 Received: from [10.42.69.11] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6ac657d5-2eae-0a2a0a5409dd-0a2a450b93f2-20 for ; Wed, 07 Oct 2026 16:31:57 +0200 Received: from [52.101.52.59] (helo=BL2PR02CU003.outbound.protection.outlook.com) by tlsNG-42698a.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6ac657d8-b7e8-0a2a450b0019-3465343b5bab-3 for ; Wed, 07 Oct 2026 16:31:53 +0200 Received: from CYZPR17CA0008.namprd17.prod.outlook.com (2603:10b6:930:8c::17) by CH3PR12MB8727.namprd12.prod.outlook.com (2603:10b6:610:173::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.16; Wed, 7 Oct 2026 14:31:39 +0000 Received: from CY8PEPF00000052.namprd05.prod.outlook.com (2603:10b6:930:8c:cafe::6e) by CYZPR17CA0008.outlook.office365.com (2603:10b6:930:8c::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.472.21 via Frontend Transport; Wed, 7 Oct 2026 14:31:38 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by CY8PEPF00000052.mail.protection.outlook.com (10.167.247.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.14 via Frontend Transport; Wed, 7 Oct 2026 14:31:38 +0000 Received: from espagarciav-lx01.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Wed, 7 Oct 2026 09:31:32 -0500 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OzHWDshsU1OkUEIpjeqoO493UorzG7w+6vX6oeQv35BSr0LT/M06rQCHiqtlF51q3hiDOumOpYGicA9i8+pgcwGt+GQdtsqBVGB0Bx12WUESQAvIpkzOAcxrfxo/fW59KOdfFv7Nvo4oIsFqWNLvjDvEQto+E2hhFpnhbMHDuMoIOyaPMwSfgnrml5yv4qyJc0uAZJAgEsqtQmdlPLQV/kKXzGMsHR45h8lnS/N3vXiXYTbp1Oi9MV0a1VK1Ohtj1WAvid5EN/VadUDH8q7JkwVHDU2aMKLbvkDrjkQcKTOMY7NucNgiKOdKsuwGCb+7KfveAim6Kwx2/CD5y0yv0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QpzggtEvc89d4Zq2S3JWjnl+sYf63o/UJpx7GfD7Wis=; b=PUOP9ch/+RLDxy39iRBbzHpwwBRrlxWga3fr4oGGt8uUWFBsIyqnJ+yfvwq7galIYNHrddW74TlRUrBiesyQX2a18niiXXYbijdlipjynLRVnsgkyledYymS5M7cgYkhL849jjnnBuRCXZPH8aiu9iM5kTUwx3GokI+Ly3hK0HaojQQ58RsPus4WOPZv/Ec4CkC4pDGegVeiHPXnDJNwYayrCQfiFbRujQ6mjz0XbMOzqA1HL6ynv14tNa2LOeddzrWHpWmCCves+I/gVERTKwtySJlPPQ6jq3CZVABnAc4MZxakvkeAbA9i1HWFAtPgTwlGzfmD9IUqyhgFMXJQbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QpzggtEvc89d4Zq2S3JWjnl+sYf63o/UJpx7GfD7Wis=; b=XlJa5yRzFI/B3M8aMfWbRhMtQFAb/77p2Md0bVRCDNLiTiLQLrtIZRaWOLNRHBXL7x27QkXRRjstfrCNqFLKeV151Hd0hizhURor50lCm9L9BsNFRTOStP/8AhdXmoW2oCGk5mJeu7w3+UUZGLlXYOJolibhOailtyu3MFDTDEA= X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Alejandro Vallejo To: CC: Alejandro Vallejo , Alistair Francis , Connor Davis , "Oleksii Kurochko" , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , "Julien Grall" , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v2 2/3] riscv/nospec: Make nospec helpers always_inline Date: Wed, 7 Oct 2026 16:31:07 +0200 Message-ID: <20261007143117.757375-3-alejandro.garciavallejo@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> References: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY8PEPF00000052:EE_|CH3PR12MB8727:EE_ X-MS-Office365-Filtering-Correlation-Id: c1b0f4cd-4c82-4746-d6fa-08df247fb27f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|82310400026|7416014|376014|1800799024|56012099006|11063799006|10067099003|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: /1nG6vc+gn4c90w/qER0vce4HbnjqwW772jbfW7FeP6MYhjfNpweOtj8tatOGAiNVhOS3tU51Lc+vh2sEI+g+9q81Az10mZSlLR50WyCVVSGDyZGwAEBRmyOQDELONJk4BpJGp4GiVpzNf66G3GDYANbMwS2h7AaQmw3AWhr1tHXGFx7N8jHA9tGgoYMoJqBEF2e2+e0hHtFrJPAAngZjAQw9Pu+Ux6gOoNcOrc+Z9LJzp304O5+InpafKev87aQFp20rm4Os3TleljdGC07IPRNkMhxEgDrJRWrlMMfhOyC+k9NHEVGVQSUWe37pkjc8jYxG9VwBHBUHFlZoysVOmJoevKUjsqBjo8sktFE0X5mpSzAV8d64LTuUctIIicLNBK7CyhwuGsvQXzziqwjw4ikjDii83lMI7AUyhZ5Qr3tEU2O97hhdugq658VRd7ncWrVmwXEoGbCeEp2KdILQDTJ1yizXEZlRgfAWZ81vWvQLLCk2GrIlZwgseEubBHcteR/fAJJd0PgUAcC2iTOz5g8n9cPlPJDxv7sZM3pqmZr3gwJnTPm1GiymkvGEB89iu/ExU2hbdsEZ/UNZRp11iBq9d5y01RxKKJ4z32IqZJbRxEWVzugT/tQFJVklQV3Thvbs6BEYEHfK6OnkbWhvxJpXJyLiydIRpB07obrhgPPiUbp4yUyE8t55GGAL1AJN40Qz54xzqlIIyqDTq64Ag== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(36860700016)(82310400026)(7416014)(376014)(1800799024)(56012099006)(11063799006)(10067099003)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 55CvLi0yJjTL2PgJ9iHJ+ZuJ2t9JuevTDqrkIs5+x31JeLt08+2YYE8eUVbNuNVefOE1oIEigGWjOfNwKxeNOC1G1ios71gJSdrCH26kjv8fPxJisLICNZn2gYr6dpolnTPm8968nc2INgZGd1DxfVa4p67VQGznPSUctRA7tlRfozueW017PvbAwwR8r51U2V10yqXnMQ/jXFoLTO7siyVo0ulxO4SCyvN7KDkYriXzQnVoYW+9C8zRaNNXMXGdyWG5qkxf1WAKqPebjQneTirV67JIdU3MmlkatsW6drY+K6d/TbCUu/EZ0r/zDUdMV7zebmZM/tmVPlSJNxCdTQzJX/gf/dKMTHOyexDUsnBvH01fjkrqcOC6oZp/9bUNSoHFoFHz8E+JBIUk+04dPd6sf3k7KDYPo733a9xx+mJ8NMIY63dtSuqrCuC21VM2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2026 14:31:38.3174 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1b0f4cd-4c82-4746-d6fa-08df247fb27f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY8PEPF00000052.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8727 X-purgate-ID: tlsNG-42698a/1791383513-A86CA9EA-BA593B66/0/0 X-purgate-type: clean X-purgate-size: 909 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1791383541575158500 Content-Type: text/plain; charset="utf-8" While today they don't implement fencing in a way that would block speculation, once/if they do they'll absolutely need to be inlined, even if -fno-inline is passed. Signed-off-by: Alejandro Vallejo --- xen/arch/riscv/include/asm/nospec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/riscv/include/asm/nospec.h b/xen/arch/riscv/include/a= sm/nospec.h index f9b0241c98..f9bba8b2bb 100644 --- a/xen/arch/riscv/include/asm/nospec.h +++ b/xen/arch/riscv/include/asm/nospec.h @@ -4,12 +4,12 @@ #ifndef ASM__RISCV__NOSPEC_H #define ASM__RISCV__NOSPEC_H =20 -static inline bool evaluate_nospec(bool condition) +static always_inline bool evaluate_nospec(bool condition) { return condition; } =20 -static inline void block_speculation(void) +static always_inline void block_speculation(void) { } =20 --=20 2.43.0 From nobody Mon Nov 23 22:45:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass(p=quarantine dis=none) header.from=amd.com ARC-Seal: i=2; a=rsa-sha256; t=1791383529; cv=pass; d=zohomail.com; s=zohoarc; b=HI7Y8+YWIA1gLRZK/eo7bNGE8UvlHTtKgWi8dqzNQC2Pe1N/Tb9vNRy5ES+Me5rjZO1IcWF+hSbjmuO3HEMMNO47hZlMbhyoGjL9Bn/SkZ5HIdi423lnnWXfOtOv/BM92pQaYwgQiMUz+6aLoocZqGSiwSCDvzPSEs713nXRZqU= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791383529; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pKkCPFa4pzpfzKbbz3YgL7Xlp/A9xi/G2NwMw10eKJ4=; b=n3RlGReirMJGfRDT1vvQYQO2ANSsw2Xc9rX6UX7yJAuAMKFd7HB0Z7/eXT2/RpBfyR1BXbTZQ6ydBIaABbGvZCArZTuwNmGYk+k0lYAQvo8yIdCjAhDggIhXvQQK3ax9+rqBCYr3dcm5IIhR/JRmt3+d7+q6Bhja2JeuPj6JNjM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=amd.com); dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1791383529779451.8013708615305; Wed, 7 Oct 2026 07:32:09 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1442426.1659993 (Exim 4.92) (envelope-from ) id 1xESgS-00073c-5w; Wed, 07 Oct 2026 14:31:52 +0000 Received: by outflank-mailman (output) from mailman id 1442426.1659993; Wed, 07 Oct 2026 14:31:52 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESgS-00073V-1X; Wed, 07 Oct 2026 14:31:52 +0000 Received: by outflank-mailman (input) for mailman id 1442426; Wed, 07 Oct 2026 14:31:50 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xESgQ-000729-QJ for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 14:31:50 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xESgQ-008Syv-6P for xen-devel@lists.xenproject.org; Wed, 07 Oct 2026 16:31:50 +0200 Received: from [10.42.69.10] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6ac657ce-2eae-0a2a0a5409dd-0a2a450ae994-32 for ; Wed, 07 Oct 2026 16:31:49 +0200 Received: from [40.107.208.67] (helo=PH0PR06CU001.outbound.protection.outlook.com) by tlsNG-4011c0.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6ac657d1-f2d2-0a2a450a0019-286bd0433a16-3 for ; Wed, 07 Oct 2026 16:31:47 +0200 Received: from CYXPR02CA0002.namprd02.prod.outlook.com (2603:10b6:930:cf::28) by MN0PR12MB5931.namprd12.prod.outlook.com (2603:10b6:208:37e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.15; Wed, 7 Oct 2026 14:31:40 +0000 Received: from SN1PEPF00036F3D.namprd05.prod.outlook.com (2603:10b6:930:cf:cafe::73) by CYXPR02CA0002.outlook.office365.com (2603:10b6:930:cf::28) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.472.20 via Frontend Transport; Wed, 7 Oct 2026 14:31:40 +0000 Received: from satlexmb07.amd.com (165.204.84.17) by SN1PEPF00036F3D.mail.protection.outlook.com (10.167.248.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.14 via Frontend Transport; Wed, 7 Oct 2026 14:31:39 +0000 Received: from espagarciav-lx01.amd.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Wed, 7 Oct 2026 09:31:36 -0500 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qGxiXy1dm6MTSOr8cEKVgLHlSS+mds6tB+3uinOZkpBZcX9wUZySelX3DNyZzDd0L5LXW1ZZeIi4es9Un0TKXiJD9eaOrbpbv8bm/Up8+nQWK1Xj54Tk63uws/cHK7utYtlwVKkOKylEBrPPp8WvgqJRempPJAefksMQcqTQv4MW2ujN7R/HrQho/Bxjw1pAqTWOQW244X525Y9vvXPv+w1BQeSggccu8vsxsOCYt5wQOu4e16C/MfxGRu3YgZz+/ksqrHIm1gdLiU8Qyn07L7ToDQ6wPalNGR4Xgwd+UrKLSV0M8hjva4FLzmrI4/w1v1hqkF/oDnLBLgoI8g4D8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pKkCPFa4pzpfzKbbz3YgL7Xlp/A9xi/G2NwMw10eKJ4=; b=pYGQVmAeeBakdHn2yPFk/jNWDJVG0r96cFv3nPArjZz9417SIfnL27NcZcjsg1dHopfee2nkD6eCLkTvJYGqJOhbncV/rXkmrn4AJq6AFPfqiACGVq0k5xNhAUweV+eRysrUAxmN+FqWmv+NkK15WOqmUtgFc+OulesrmsqZQeizMlehfmW4TpJjBF0w85sX9KM5PCvSdiQiO2xnSUmP/4tJ5j+QBg4jw4Ob7AUyEZH8BZQi7tfzvd0XopgxAZiCj9/+aVpOuZK3dn+wyCMeIR9WfbcxlrwZdiQc3xeuh+2dTcpkFrzRUxqegM/lOxnw4ej46Yv3OJd4XqTS1lkNLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pKkCPFa4pzpfzKbbz3YgL7Xlp/A9xi/G2NwMw10eKJ4=; b=Af5UJ4/lTZYARCjTPcCzpeQGcjBIZIravSgpZBTOD/4a1n2J+PRkxrxTlXqnP7S2Z/tfGJU2OD9/1q6Yq/CqNugirQKXElAbqlZFc97jTOehcCptolGIXcr0HMQ8fd+R7EgvUXPj9XQbk7gFeaTNg7uUmOYij6mH1Xbe8zBDep4= X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C From: Alejandro Vallejo To: CC: Alejandro Vallejo , Timothy Pearson , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v2 3/3] ppc/nospec: Make nospec helpers always_inline Date: Wed, 7 Oct 2026 16:31:08 +0200 Message-ID: <20261007143117.757375-4-alejandro.garciavallejo@amd.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> References: <20261007143117.757375-1-alejandro.garciavallejo@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: satlexmb07.amd.com (10.181.42.216) To satlexmb07.amd.com (10.181.42.216) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF00036F3D:EE_|MN0PR12MB5931:EE_ X-MS-Office365-Filtering-Correlation-Id: dba2cd52-5ef7-40e6-6fe4-08df247fb342 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700016|376014|82310400026|23010399003|11063799006|56012099006|10067099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: HA2TXq1CorMIYHJdFkgqCFzPy9ynOyUM2RpodXi59GyWHW2sWwTxh3UpcE5z8laNQ6tBV10dmr60AmKIPCX2xNCMhdyo0a5t8HyCrT/gb2yy++BfnYUiA+drABmmBJhLM1+xQBz6dUhchVSYmkq6mtFNwDIW90j9QJubB97t+BfUVLX+HInl1dAWe//tDf6CVl8Awv0k/tuY5+mCjlCaFetc1vFxTZ2MSEdOyHdSksAvc54rJJEtiZ9K6shZUIHxyGvWaMDPUtmpOid4Oqgu1YRmHxssl9g01Pp8O/7OntHzc+hqPTatiPoaeP0yaBLNBI7ty8YFWHw4WymGnoMjWcMyDwvSIKzaGqbAnbCUS9Ge6bl5q8KokAR/aPL8XBTuFgL389tbZfCbTv1Sbf20SkUX/ahM0CmjRGCi06J58R3qYPTIjmN3o9qxblEvjclBB0aahSNTpmrTmouEg6xAETfd7N396lWA+a6q0RjXWzeFgjjS2MiwWbMdP9JuwYB5rasyOHIZ0sLVi9RBlpOP8A2XECBmfXl8Z0/OLIc8yLgcCP5FJQsQa28ppyP1P+EHC/JD1HmjbRg1XvOW/D4pYSLyF0byMsAUMEOT9ObetXlMt2SWeSqcri6t5OYO8O3wS0M1gTuWVLqqBpOsTgbVC+QAA7YtSQJr33wLuolYZhky9bvVqI+KPvDDgitXan7f0wnioWSeGqqEscXhIHjupA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700016)(376014)(82310400026)(23010399003)(11063799006)(56012099006)(10067099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lKu+WthuaU5ZdXk9V8/a5JxlRIAUZWAj35dOe5iBj2mhEEvdnn+cRI8qpZ8MLOTKe8VC14/Pd7dz/iN4tFjYya/r8fMOS21K39Be2x9rESTLdiEfCku5gm/fLGoLITYpxVY6KFEnddtf5sJQR1Dug+lV4nbmKfH6fI4daI+OckFDNJT/04QrDq3SgoHo6bmwwDQlc0fw0oFF79Lpaeh8ovfLc7Rd2WchpGMbFSSXEvoyObB6N3OKvNHkTU6H17r5FXx5GuNQvN7pERiSgzkuwPv3AMy3uQ0i/RGGhOS6i/3bsmHb5m0chd9iBP4hMeaX4EoAZ5qLDgohRx8uNMAGdywxFJ9uK02c2U7/rseUfkIi9u3co94fScXsYZh2MDsrmvhd2f8T+Rg2w3SBBWHr/3eModafJWKnTSHHE6aJziOjXPE/se4F1pAsiBR/d1PP X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2026 14:31:39.6430 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dba2cd52-5ef7-40e6-6fe4-08df247fb342 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF00036F3D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5931 X-purgate-ID: tlsNG-4011c0/1791383509-5ABD8CFC-170FAD37/0/0 X-purgate-type: clean X-purgate-size: 899 X-ZohoMail-DKIM: pass (identity @amd.com) X-ZM-MESSAGEID: 1791383531512158500 Content-Type: text/plain; charset="utf-8" While today they don't implement fencing in a way that would block speculation, once/if they do they'll absolutely need to be inlined, even if -fno-inline is passed. Signed-off-by: Alejandro Vallejo --- xen/arch/ppc/include/asm/nospec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/ppc/include/asm/nospec.h b/xen/arch/ppc/include/asm/n= ospec.h index b97322e48d..647800b123 100644 --- a/xen/arch/ppc/include/asm/nospec.h +++ b/xen/arch/ppc/include/asm/nospec.h @@ -3,12 +3,12 @@ #ifndef __ASM_PPC_NOSPEC_H__ #define __ASM_PPC_NOSPEC_H__ =20 -static inline bool evaluate_nospec(bool condition) +static always_inline bool evaluate_nospec(bool condition) { return condition; } =20 -static inline void block_speculation(void) +static always_inline void block_speculation(void) { } =20 --=20 2.43.0