powerpc/64s: Wire up cpu_show_meltdown()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 10:20:05 +0000 (21:20 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Feb 2018 19:12:17 +0000 (11:12 -0800)
commit517bdccc3af650316046801fdcd828d7b6aa42ba
tree1ad3ec158b8b193ee1a91947c3fff138bfbcb7d8
parent16d3d10d29f753d0247d94f5e889e93dd13f56bb
powerpc/64s: Wire up cpu_show_meltdown()

commit fd6e440f20b1a4304553775fc55938848ff617c9 upstream.

The recent commit 87590ce6e373 ("sysfs/cpu: Add vulnerability folder")
added a generic folder and set of files for reporting information on
CPU vulnerabilities. One of those was for meltdown:

  /sys/devices/system/cpu/vulnerabilities/meltdown

This commit wires up that file for 64-bit Book3S powerpc.

For now we default to "Vulnerable" unless the RFI flush is enabled.
That may not actually be true on all hardware, further patches will
refine the reporting based on the CPU/platform etc. But for now we
default to being pessimists.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/Kconfig
arch/powerpc/kernel/setup_64.c