Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\zhaoxin.c Create Date:2022-07-28 07:59:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zhaoxin_detect_vmx_virtcap

Proto:static void zhaoxin_detect_vmx_virtcap(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
96  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_IA32_VMX_PROCBASED_CTLS, vmx_msr_low, vmx_msr_high)
97  msr_ctl = vmx_msr_high | vmx_msr_low
99  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOW Then set_cpu_cap(c, Intel TPR Shadow )
101  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_VNMI Then set_cpu_cap(c, Intel Virtual NMI )
103  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_2ND_CTLS Then
104  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_IA32_VMX_PROCBASED_CTLS2, vmx_msr_low, vmx_msr_high)
106  msr_ctl2 = vmx_msr_high | vmx_msr_low
107  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VIRT_APIC && msr_ctl & X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOW Then set_cpu_cap(c, Intel FlexPriority )
110  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_EPT Then set_cpu_cap(c, Intel Extended Page Table )
112  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VPID Then set_cpu_cap(c, Intel Virtual Processor ID )
Caller
NameDescribe
init_zhaoxin