x86/speculation/mds: Add sysfs reporting for MDS
authorThomas Gleixner <tglx@linutronix.de>
Mon, 18 Feb 2019 21:51:43 +0000 (22:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 May 2019 17:19:40 +0000 (19:19 +0200)
commitba08d562b066f044e2985ece32b7890f556ee5ed
tree6ad73e14da12bf7b0aefcb2bbf1ff243217f6d4c
parent4e722ae3141fc6aebadc722b3b10720e2ffd866f
x86/speculation/mds: Add sysfs reporting for MDS

commit 8a4b06d391b0a42a373808979b5028f5c84d9c6a upstream.

Add the sysfs reporting file for MDS. It exposes the vulnerability and
mitigation state similar to the existing files for the other speculative
hardware vulnerabilities.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jon Masters <jcm@redhat.com>
Tested-by: Jon Masters <jcm@redhat.com>
[bwh: Backported to 4.9: test x86_hyper instead of using hypervisor_is_type()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-devices-system-cpu
arch/x86/kernel/cpu/bugs.c
drivers/base/cpu.c
include/linux/cpu.h