Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:09
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_speculation_control

Proto:static void init_speculation_control(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
843  If cpu_has(c, "" Speculation Control (IBRS + IBPB) ) Then
844  set_cpu_cap(c, Indirect Branch Restricted Speculation )
845  set_cpu_cap(c, Indirect Branch Prediction Barrier )
846  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
849  If cpu_has(c, "" Single Thread Indirect Branch Predictors ) Then set_cpu_cap(c, Single Thread Indirect Branch Predictors )
852  If cpu_has(c, "" Speculative Store Bypass Disable ) || cpu_has(c, Virtualized Speculative Store Bypass Disable ) Then set_cpu_cap(c, Speculative Store Bypass Disable )
856  If cpu_has(c, "" Indirect Branch Restricted Speculation ) Then
857  set_cpu_cap(c, Indirect Branch Restricted Speculation )
858  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
861  If cpu_has(c, "" Indirect Branch Prediction Barrier ) Then set_cpu_cap(c, Indirect Branch Prediction Barrier )
864  If cpu_has(c, "" Single Thread Indirect Branch Predictors ) Then
865  set_cpu_cap(c, Single Thread Indirect Branch Predictors )
866  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
869  If cpu_has(c, "" Speculative Store Bypass Disable ) Then
870  set_cpu_cap(c, Speculative Store Bypass Disable )
871  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
872  clear_cpu_cap(c, Virtualized Speculative Store Bypass Disable )
Caller
NameDescribe
get_cpu_cap