]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: support nospectre_v2 cmdline option
authorChristopher M. Riedl <cmr@informatik.wtf>
Fri, 24 May 2019 02:46:48 +0000 (21:46 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Aug 2019 03:03:32 +0000 (13:03 +1000)
commit47bb711197989c75587aa253f744b1d72afce8a2
tree612a9d418874be908ffcd3d5f5ec69d9a468186b
parentdf2887e988f4c223545315050c051b7dc90efac1
powerpc/64s: support nospectre_v2 cmdline option

Add support for disabling the kernel implemented spectre v2 mitigation
(count cache flush on context switch) via the nospectre_v2 and
mitigations=off cmdline options.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Christopher M. Riedl <cmr@informatik.wtf>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190524024647.381-1-cmr@informatik.wtf
arch/powerpc/kernel/security.c