Skip to main content

HOST_DEFAULT_XCR0_CACHE

Static HOST_DEFAULT_XCR0_CACHE 

Source
pub(crate) static HOST_DEFAULT_XCR0_CACHE: AtomicU64
Expand description

Lock-free cache of the host’s default XCR0 mask, written once during init(). Used by normalized_xcr0() in the context-switch hot path to avoid acquiring the HOST_CPU spinlock with interrupts disabled.