HviGetHypervisorVendorAndMaxFunction

The HviGetHypervisorVendorAndMaxFunction function obtains the output of a hypervisor’s cpuid leaf 0x40000000.

Declaration

VOID HviGetHypervisorVendorAndMaxFunction (HV_VENDOR_AND_MAX_FUNCTION *);

Parameters

The one argument provides the address of a structure that is to receive the cpuid output.

Availability

The HviGetHypervisorVendorAndMaxFunction function is exported by name from the kernel in version 10.0 and higher.

Documentation Status

The HviGetHypervisorVendorAndMaxFunction function is not documented.

Behaviour

If cpuid leaf 1 shows that a hypervisor is present—see HviIsAnyHypervisorPresent—then the function copies to the given address whatever cpuid leaf 0x40000000 produces in the eax, ebx, ecx and edx registers.

Otherwise, the structure at the given address is zeroed.