[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 3/3] ppc/nospec: Make nospec helpers always_inline


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
  • Date: Wed, 7 Oct 2026 16:31:08 +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=pKkCPFa4pzpfzKbbz3YgL7Xlp/A9xi/G2NwMw10eKJ4=; b=pYGQVmAeeBakdHn2yPFk/jNWDJVG0r96cFv3nPArjZz9417SIfnL27NcZcjsg1dHopfee2nkD6eCLkTvJYGqJOhbncV/rXkmrn4AJq6AFPfqiACGVq0k5xNhAUweV+eRysrUAxmN+FqWmv+NkK15WOqmUtgFc+OulesrmsqZQeizMlehfmW4TpJjBF0w85sX9KM5PCvSdiQiO2xnSUmP/4tJ5j+QBg4jw4Ob7AUyEZH8BZQi7tfzvd0XopgxAZiCj9/+aVpOuZK3dn+wyCMeIR9WfbcxlrwZdiQc3xeuh+2dTcpkFrzRUxqegM/lOxnw4ej46Yv3OJd4XqTS1lkNLQ==
  • 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==
  • 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>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger@xxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 07 Oct 2026 14:31:52 +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 is passed.

Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
---
 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/nospec.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__
 
-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)
 {
 }
 
-- 
2.43.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.