]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - kernel/cpu.c
cpu/hotplug: Expose SMT control init function
authorJiri Kosina <jkosina@suse.cz>
Fri, 13 Jul 2018 14:23:23 +0000 (16:23 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 8 Aug 2018 12:08:07 +0000 (14:08 +0200)
commit442197992422f1ad9e98276ce10c7e09ad4cc5ae
tree6c24b55b7d8166fba9d19cd1b2f3d963afd2483a
parent522c7bed8cc2e45abd2e4ba9a24df31251e28f11
cpu/hotplug: Expose SMT control init function

The L1TF mitigation will gain a commend line parameter which allows to set
a combination of hypervisor mitigation and SMT control.

Expose cpu_smt_disable() so the command line parser can tweak SMT settings.

[ tglx: Split out of larger patch and made it preserve an already existing
   force off state ]

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Jiri Kosina <jkosina@suse.cz>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lkml.kernel.org/r/20180713142323.039715135@linutronix.de
CVE-2018-3620
CVE-2018-3646

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/cpu.h
kernel/cpu.c