]> git.baikalelectronics.ru Git - kernel.git/commit
sysfs/cpu: Add vulnerability folder
authorThomas Gleixner <tglx@linutronix.de>
Sun, 7 Jan 2018 21:48:00 +0000 (22:48 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 8 Jan 2018 10:10:33 +0000 (11:10 +0100)
commite88cc3e9b974638dadff7490c69f2278f603d356
treeb3d5c8ca8fe62571842c3461956da2183957a61c
parente02bcac0e8fe5623c334d5747c43bb755ee1b689
sysfs/cpu: Add vulnerability folder

As the meltdown/spectre problem affects several CPU architectures, it makes
sense to have common way to express whether a system is affected by a
particular vulnerability or not. If affected the way to express the
mitigation should be common as well.

Create /sys/devices/system/cpu/vulnerabilities folder and files for
meltdown, spectre_v1 and spectre_v2.

Allow architectures to override the show function.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Woodhouse <dwmw@amazon.co.uk>
Link: https://lkml.kernel.org/r/20180107214913.096657732@linutronix.de
Documentation/ABI/testing/sysfs-devices-system-cpu
drivers/base/Kconfig
drivers/base/cpu.c
include/linux/cpu.h