Geoff Chappell, Software Analyst
The HviIsAnyHypervisorPresent function tells whether the cpuid instruction is implemented by a hypervisor.
BOOLEAN HviIsAnyHypervisorPresent (VOID);
The function returns TRUE or FALSE according to whether a hypervisor is present.
The HviIsAnyHypervisorPresent function is exported by name from the kernel in version 10.0 and higher.
The HviIsAnyHypervisorPresent function is not documented.
The function executes cpuid with 1 in eax and returns TRUE or FALSE according to whether the 0x80000000 bit in ecx is then set or clear. Intel’s literature for Intel’s processors assures that this bit is “Not Used” and “Always returns 0”. From a set bit, the function infers that some sort of hypervisor is present.