Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:centaur_detect_vmx_virtcap

Proto:static void centaur_detect_vmx_virtcap(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
126  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)
127  msr_ctl = vmx_msr_high | vmx_msr_low
129  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOW Then set_cpu_cap(c, Intel TPR Shadow )
131  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_VNMI Then set_cpu_cap(c, Intel Virtual NMI )
133  If msr_ctl & X86_VMX_FEATURE_PROC_CTLS_2ND_CTLS Then
134  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)
136  msr_ctl2 = vmx_msr_high | vmx_msr_low
137  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 )
140  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_EPT Then set_cpu_cap(c, Intel Extended Page Table )
142  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VPID Then set_cpu_cap(c, Intel Virtual Processor ID )
Caller
NameDescribe
init_centaur