Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mshyperv.c Create Date:2022-07-28 08:15:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ms_hyperv_platform

Proto:static uint32_t __init ms_hyperv_platform(void)

Type:uint32_t

Parameter:Nothing

154  If Not boot_cpu_has(Running on a hypervisor ) Then Return 0
157  cpuid(The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent* is set by CPUID(HvCpuIdFunctionVersionAndFeatures)., & eax, & hyp_signature[0], & hyp_signature[1], & hyp_signature[2])
160  If eax >= HYPERV_CPUID_MIN && eax <= HYPERV_CPUID_MAX && Not memcmp("Microsoft Hv", hyp_signature, 12) Then Return The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent* is set by CPUID(HvCpuIdFunctionVersionAndFeatures).
165  Return 0