Skip to main content

xsave_area_size

Function xsave_area_size 

Source
fn xsave_area_size(xcr0: u64, max_bytes: usize) -> usize
Expand description

Walk CPUID leaf 0x0D for the components in xcr0 (skipping supervisor states managed via IA32_XSS) and return the save-area size, clamped to max_bytes and floored at 576 (legacy area + XSAVE header).