xen/console: add comment about external console lock helper
PATCH 1/1 xen/console: add comment about external console lock helper
The current console_lock_recursive_irqsave() implementation is not speculation safe, however it's only used to prevent interleaved output. Note this in the function declaration in order for callers to be aware of the limitation.
No functional change.
Signed-off-by Roger Pau Monné <[email protected]>
--- xen/include/xen/console.h | 1 + 1 file changed, 1 insertion(+)
xen/include/xen/console.h +1 -0
@@ -20,6 +20,7 @@ void console_init_postirq(void);void console_endboot (void );int console_has (const char *device); +/* Not speculation safe - only used to prevent interleaving of output. */ unsigned long console_lock_recursive_irqsave (void );void console_unlock_recursive_irqrestore (unsigned long flags);void console_force_unlock (void );
Signature · 1 line
2.44.0
Quoted 7 lines · Roger Pau Monne
The current
console_lock_recursive_irqsave()implementation is not speculation safe, however it's only used to prevent interleaved output. Note this in the function declaration in order for callers to be aware of the limitation.No functional change.
Signed-off-by Roger Pau Monné <[email protected]>
Acked-by Jan Beulich <[email protected]>