All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm/nospec: Make nospec helpers always_inline
@ 2026-10-06 10:31 Alejandro Vallejo
  2026-10-06 10:45 ` Orzel, Michal
  2026-10-06 13:50 ` Roger Pau Monné
  0 siblings, 2 replies; 8+ messages in thread
From: Alejandro Vallejo @ 2026-10-06 10:31 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Volodymyr Babchuk, Michal Orzel

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@amd.com>
---
 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



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-07 12:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-06 10:31 [PATCH] arm/nospec: Make nospec helpers always_inline Alejandro Vallejo
2026-10-06 10:45 ` Orzel, Michal
2026-10-06 10:51   ` Andrew Cooper
2026-10-06 12:21     ` Alejandro Vallejo
2026-10-06 12:29   ` Alejandro Vallejo
2026-10-07 12:00     ` Orzel, Michal
2026-10-07 12:40       ` Alejandro Vallejo
2026-10-06 13:50 ` Roger Pau Monné

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.