[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] arm/nospec: Make nospec helpers always_inline
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Date: Tue, 6 Oct 2026 12:31:40 +0200
- 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)
- 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=SaWkWhr8Df7fn3pAXC2CTiSVEyMc+gf6VWML+h9pGoA=; b=sPYn1j1iMylT9WfpjNC/AXxyJ+aixZ1IgjAfeYokJh598Tvg40KMVNoegzLGA1Qfy4j+Z6rSI9N64UY38Q8fuUu1ZltXwI2fFQY19Djfp83/Dtsl7cHtTRTsRJ2glgyOBRE11d+gHumXBGqzCTwww707fZE0zgHRQZnQdzyQYGDrwtpbHUASaVQomvw8IgSqnHlZz2jeX/UdAIY0KX7eqAIVR9uu47hf7yxzSefeg4tIj2OTuPhrrRYKZBelEAARHBhlC8+DxNon+Q+/Rr/oLLBNyf+B38L3Y52ZuqqCLM4SXyZUjne3HhsBXgI4XPWaO6Uu651whjLsV2qZIHlI8g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=unPSKZ6MGr3AahWjc6PsOAUBbrlVjS3QN6rOfJg6jHRujg/+VppCgXybRmRw222lgFAkItypSlz1jpn8+QVuz+CBUmX7dgsM5TcPA/eOLupFKn2tXehAY5NZxHdP6C9QHKGmn/iorZHBTG6pmJpJZRd62rYISNqqPPvDF03OBFnx7rm1OAbD6rli2xTvm34sKAUV6IZWvNvLjjSwq0RBMks9LyKHJN74oXPT5jKWha2DMBuDw74TF/cZiqB9TsNG5aMeoAiM9JJ/990fnq6SR078cxWgVoi3BHvFmsBtCpPXs4PdfhdTKi3wA7rC5NEAm1jqSv8/BnOO801iRrpoKw==
- 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"
- Cc: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>
- Delivery-date: Tue, 06 Oct 2026 10:32:11 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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 or -fno-early-inlining are passed.
Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
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/nospec.h
index 51c7aea4f4..b84f8dff45 100644
--- a/xen/arch/arm/include/asm/nospec.h
+++ b/xen/arch/arm/include/asm/nospec.h
@@ -4,12 +4,12 @@
#ifndef _ASM_ARM_NOSPEC_H
#define _ASM_ARM_NOSPEC_H
-static inline bool evaluate_nospec(bool condition)
+static always_inline bool evaluate_nospec(bool condition)
{
return condition;
}
-static inline void block_speculation(void)
+static always_inline void block_speculation(void)
{
}
base-commit: 290959692726bed9a9404fbb151767dba9928c5b
--
2.43.0
|