]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Wire up cpu_show_meltdown()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 Jan 2018 10:20:05 +0000 (21:20 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 17 Jan 2018 12:30:20 +0000 (23:30 +1100)
commitce6fa105862738d1995df37d76a10ff1b176af99
treefbc2ced1ac72f2e89dd5b565c81d5658c749f209
parent7c2b3ea350323e7342eb3bfb861d97ee58907926
powerpc/64s: Wire up cpu_show_meltdown()

The recent commit 75c2bd47081b ("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>
arch/powerpc/Kconfig
arch/powerpc/kernel/setup_64.c