函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\vmware.c Create Date:2022-07-27 09:14:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static uint32_t __init vmware_platform(void)

返回类型:uint32_t

参数:

234  如果boot_cpu_has(Running on a hypervisor )则
238  cpuid(CPUID_VMWARE_INFO_LEAF, & eax, & hyper_vendor_id[0], & hyper_vendor_id[1], & hyper_vendor_id[2])
240  如果非内存比较
245  打印信息("hypercall mode: 0x%02x\n", (unsignedint)vmware_hypercall_mode)
248  返回:CPUID_VMWARE_INFO_LEAF
250  否则如果dmi_availabledmi_name_in_serial("VMware")且__vmware_platform()则返回:1
254  返回:0