函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-27 08:55:27
Last Modify:2020-03-16 20:28:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:init_speculation_control

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

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
843  如果cpu_has(c, "" Speculation Control (IBRS + IBPB) )则
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  如果cpu_has(c, "" Single Thread Indirect Branch Predictors )则set_cpu_cap(c, Single Thread Indirect Branch Predictors )
852  如果cpu_has(c, "" Speculative Store Bypass Disable )或cpu_has(c, Virtualized Speculative Store Bypass Disable )则set_cpu_cap(c, Speculative Store Bypass Disable )
856  如果cpu_has(c, "" Indirect Branch Restricted Speculation )则
857  set_cpu_cap(c, Indirect Branch Restricted Speculation )
858  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
861  如果cpu_has(c, "" Indirect Branch Prediction Barrier )则set_cpu_cap(c, Indirect Branch Prediction Barrier )
864  如果cpu_has(c, "" Single Thread Indirect Branch Predictors )则
865  set_cpu_cap(c, Single Thread Indirect Branch Predictors )
866  set_cpu_cap(c, "" MSR SPEC_CTRL is implemented )
869  如果cpu_has(c, "" Speculative Store Bypass Disable )则
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 )
调用者
名称描述
get_cpu_cap