函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:detect_vmx_virtcap

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

返回类型:void

参数:

类型参数名称
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 )
514  clear_cpu_cap(c, Intel Extended Page Table )
515  clear_cpu_cap(c, Intel Virtual Processor ID )
516  clear_cpu_cap(c, Intel Extended Page Table access-dirty bit )
518  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)
519  msr_ctl等于vmx_msr_high按位或vmx_msr_low
520  如果msr_ctl按位与Intel VMX MSR indicated features set_cpu_cap(c, Intel TPR Shadow )
522  如果msr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_VNMIset_cpu_cap(c, Intel Virtual NMI )
524  如果msr_ctl按位与X86_VMX_FEATURE_PROC_CTLS_2ND_CTLS
525  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)
527  msr_ctl2等于vmx_msr_high按位或vmx_msr_low
528  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_VIRT_APICmsr_ctl按位与Intel VMX MSR indicated features set_cpu_cap(c, Intel FlexPriority )
531  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_EPT
538  如果msr_ctl2按位与X86_VMX_FEATURE_PROC_CTLS2_VPIDset_cpu_cap(c, Intel Virtual Processor ID )
调用者
名称描述
init_intel