函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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_available且dmi_name_in_serial("VMware")且__vmware_platform()则返回:1 |
254 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |