Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:While checking the dmi string information, just checking the product* serial key should be enough, as this will always have a VMware* specific string when running under VMware hypervisor.* If !boot_cpu_has(X86_FEATURE_HYPERVISOR), vmware_hypercall_mode

Proto:static uint32_t __init vmware_platform(void)

Type:uint32_t

Parameter:Nothing

234  If boot_cpu_has(Running on a hypervisor ) Then
238  cpuid(CPUID_VMWARE_INFO_LEAF, & eax, & hyper_vendor_id[0], & hyper_vendor_id[1], & hyper_vendor_id[2])
240  If Not memcmp(hyper_vendor_id, "VMwareVMware", 12) Then
245  pr_info("hypercall mode: 0x%02x\n", (unsignedint)vmware_hypercall_mode)
248  Return CPUID_VMWARE_INFO_LEAF
250  Else if dmi_available && dmi_name_in_serial("VMware") && __vmware_platform() Then Return 1
254  Return 0