Skip to main content

check_host_cpuid

Function check_host_cpuid 

Source
pub fn check_host_cpuid(
    host: &dyn HostCpuid,
    advertised: &[(u32, u32, usize, u32)],
) -> Result<(), AdmissionRefusal>
Expand description

The host checks that need only CPUID, in the order they are checked: every advertised v3 feature bit natively, OSXSAVE, not a hybrid part, and not an AMD part without XSAVEERPTR (where Linux runs fnclex; emms; fildl before every FPU restore, a path no host here can exercise).