Skip to main content

USES_XSAVE

Static USES_XSAVE 

Source
static USES_XSAVE: AtomicBool
Expand description

Lock-free copy of CpuInfo::features.contains(XSAVE), published by init() before INITIALIZED becomes true and never cleared.

The context-switch path (do_switch_context, do_restore_first_task, normalized_xcr0) must not acquire HOST_CPU with interrupts disabled, so it reads this flag instead. Invariant: INITIALIZED == true implies this flag already holds the frozen boot CPU’s XSAVE capability.