Function report | 
Source Code:arch\x86\kernel\cpu\intel.c | 
Create Date:2022-07-28 07:57:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:detect_vmx_virtcap
Proto:static void detect_vmx_virtcap(struct cpuinfo_x86 *c)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct cpuinfo_x86 * | c | 
| 511 | clear_cpu_cap(c, Intel TPR Shadow ) | 
| 512 | clear_cpu_cap(c, Intel Virtual NMI ) | 
| 513 | clear_cpu_cap(c, Intel FlexPriority ) | 
| 519 | msr_ctl = vmx_msr_high | vmx_msr_low | 
| 520 | If msr_ctl & Intel VMX MSR indicated features Then set_cpu_cap(c, Intel TPR Shadow ) | 
| 522 | If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_VNMI Then set_cpu_cap(c, Intel Virtual NMI ) | 
| 524 | If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_2ND_CTLS Then | 
| 527 | msr_ctl2 = vmx_msr_high | vmx_msr_low | 
| 528 | If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VIRT_APIC && msr_ctl & Intel VMX MSR indicated features Then set_cpu_cap(c, Intel FlexPriority ) | 
| 531 | If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_EPT Then | 
| 538 | If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VPID Then set_cpu_cap(c, Intel Virtual Processor ID ) | 
| Name | Describe | 
|---|---|
| init_intel | 
| 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  |