Function report |
Source Code:arch\x86\kernel\process.c |
Create Date:2022-07-28 07:48:44 |
Last Modify:2020-03-16 17:03:44 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Update the MSRs managing speculation control, during context switch.
Proto:static __always_inline void __speculation_ctrl_update(unsigned long tifp, unsigned long tifn)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | tifp | Previous task's thread flags |
unsigned long | tifn | Next task's thread flags |
545 | bool updmsr = false |
556 | If static_cpu_has(Virtualized Speculative Store Bypass Disable ) Then |
558 | Else if static_cpu_has("" AMD SSBD implementation via LS_CFG MSR ) Then |
560 | Else if static_cpu_has("" Speculative Store Bypass Disable ) || static_cpu_has("" Speculative Store Bypass Disable ) Then |
563 | updmsr = true |
573 | updmsr |= Not Not (tif_diff & _TIF_SPEC_IB) |
577 | If updmsr Then wrmsrl(Speculation Control , msr) |
Name | Describe |
---|---|
speculation_ctrl_update | |
__switch_to_xtra |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |