Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:detect_vmx_virtcap

Proto:static void detect_vmx_virtcap(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
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  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
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  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VIRT_APIC && msr_ctl & Intel VMX MSR indicated features Then set_cpu_cap(c, Intel FlexPriority )
538  If msr_ctl2 & X86_VMX_FEATURE_PROC_CTLS2_VPID Then set_cpu_cap(c, Intel Virtual Processor ID )
Caller
NameDescribe
init_intel