函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\centaur.c Create Date:2022-07-27 08:59:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:centaur_detect_vmx_virtcap

函数原型:static void centaur_detect_vmx_virtcap(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
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  如果msr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOWset_cpu_cap(c, Intel TPR Shadow )
131  如果msr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_VNMIset_cpu_cap(c, Intel Virtual NMI )
133  如果msr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_2ND_CTLS
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  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_VIRT_APICmsr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_TPR_SHADOWset_cpu_cap(c, Intel FlexPriority )
140  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_EPTset_cpu_cap(c, Intel Extended Page Table )
142  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_VPIDset_cpu_cap(c, Intel Virtual Processor ID )
调用者
名称描述
init_centaur