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:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__vmware_platform

Proto:static inline int __vmware_platform(void)

Type:int

Parameter:Nothing

95  VMWARE_CMD(GETVERSION, eax, ebx, ecx, edx)
96  Return eax != (uint32_t) - 1 && ebx == VMWARE_HYPERVISOR_MAGIC
Caller
NameDescribe
vmware_platformWhile 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