]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Jan 2018 16:07:15 +0000 (03:07 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Jan 2018 10:27:15 +0000 (21:27 +1100)
commit5de759ddf3088e378038cf4e46dfa4e6e042abc3
tree9ada9cf4506fc90eb937cfa892b1cddb9b588818
parenta0786057afaaab40db1e584e37dad04cce665555
powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti

Because there may be some performance overhead of the RFI flush, add
kernel command line options to disable it.

We add a sensibly named 'no_rfi_flush' option, but we also hijack the
x86 option 'nopti'. The RFI flush is not the same as KPTI, but if we
see 'nopti' we can guess that the user is trying to avoid any overhead
of Meltdown mitigations, and it means we don't have to educate every
one about a different command line option.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup_64.c