]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add security feature flags for Spectre/Meltdown
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:01:44 +0000 (23:01 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:44:51 +0000 (23:44 +1100)
commit7fc8ddd3bbd25fe9cdfa54066d4b396b7adb591c
tree463b77041dab7e21468ae99d9f294e069d889f39
parent89a2ed7ff14f338dea8de0f12ec012f2b3f4d916
powerpc: Add security feature flags for Spectre/Meltdown

This commit adds security feature flags to reflect the settings we
receive from firmware regarding Spectre/Meltdown mitigations.

The feature names reflect the names we are given by firmware on bare
metal machines. See the hostboot source for details.

Arguably these could be firmware features, but that then requires them
to be read early in boot so they're available prior to asm feature
patching, but we don't actually want to use them for patching. We may
also want to dynamically update them in future, which would be
incompatible with the way firmware features work (at the moment at
least). So for now just make them separate flags.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/security_features.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/security.c [new file with mode: 0644]