函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\process.c Create Date:2022-07-27 08:48:45
Last Modify:2020-03-16 17:03:44 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Update the MSRs managing speculation control, during context switch.

函数原型:static __always_inline void __speculation_ctrl_update(unsigned long tifp, unsigned long tifn)

返回类型:void

参数:

类型参数名称
unsigned longtifp Previous task's thread flags
unsigned longtifn Next task's thread flags
543  tif_diff等于 Previous task's thread flags按位异或 Next task's thread flags
544  msr等于The Intel SPEC CTRL MSR base value cache
545  bool updmsr = false
547  lockdep_assert_irqs_disabled()
555  如果tif_diff按位与_TIF_SSBD
563  updmsr = true
571  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP)且static_branch_unlikely( & switch_to_cond_stibp)则
573  updmsr或等于非非tif_diff按位与_TIF_SPEC_IB的值
574  msr或等于stibp_tif_to_spec_ctrl( Next task's thread flags)
577  如果updmsrwrmsrl(Speculation Control , msr)
调用者
名称描述
speculation_ctrl_update
__switch_to_xtra