Function report | 
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 activity | Download SCCT | Chinese | 
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 | 
| 241 | If eax >= CPUID_VMWARE_FEATURES_LEAF Then vmware_hypercall_mode = vmware_select_hypercall() | 
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |