]> Git Repo - linux.git/commit
x86/speculation: Rework SMT state change
authorThomas Gleixner <[email protected]>
Sun, 25 Nov 2018 18:33:39 +0000 (19:33 +0100)
committerThomas Gleixner <[email protected]>
Wed, 28 Nov 2018 10:57:07 +0000 (11:57 +0100)
commita74cfffb03b73d41e08f84c2e5c87dec0ce3db9f
tree8cb909ef80da758be3f533dd877cd3585a609941
parent321a874a7ef85655e93b3206d0f36b4a6097f948
x86/speculation: Rework SMT state change

arch_smt_update() is only called when the sysfs SMT control knob is
changed. This means that when SMT is enabled in the sysfs control knob the
system is considered to have SMT active even if all siblings are offline.

To allow finegrained control of the speculation mitigations, the actual SMT
state is more interesting than the fact that siblings could be enabled.

Rework the code, so arch_smt_update() is invoked from each individual CPU
hotplug function, and simplify the update function while at it.

Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Casey Schaufler <[email protected]>
Cc: Asit Mallick <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Cc: Jon Masters <[email protected]>
Cc: Waiman Long <[email protected]>
Cc: Greg KH <[email protected]>
Cc: Dave Stewart <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/cpu/bugs.c
include/linux/sched/smt.h
kernel/cpu.c
This page took 0.057697 seconds and 4 git commands to generate.