Skip to main content

cpuid_osxsave_enabled

Function cpuid_osxsave_enabled 

Source
pub fn cpuid_osxsave_enabled() -> bool
Expand description

Whether CR4.OSXSAVE is currently enabled on this CPU.

AVX/AVX-512 are only usable when the kernel has enabled the state (XSAVE in CR4 + XCR0 bits); CPUID alone only reports hardware capability.