diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2017-02-16 02:49:21 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-23 16:44:35 (GMT) |
commit | 920b60aa3cc2ca5b1f018bbd06f66cdf06b6eac7 (patch) | |
tree | 93234c8be43feb5940bdcd1a52cfbbf4dc611b67 /arch/c6x | |
parent | ef746a305de321a117723e664d57f7f4c2e2ac99 (diff) | |
download | linux-920b60aa3cc2ca5b1f018bbd06f66cdf06b6eac7.tar.xz |
powerpc/64: Disable use of radix under a hypervisor
commit 3f91a89d424a79f8082525db5a375e438887bb3e upstream.
Currently, if the kernel is running on a POWER9 processor under a
hypervisor, it may try to use the radix MMU even though it doesn't have
the necessary code to do so (it doesn't negotiate use of radix, and it
doesn't do the H_REGISTER_PROC_TBL hcall). If the hypervisor supports
both radix and HPT, then it will set up the guest to use HPT (since the
guest doesn't request radix in the CAS call), but if the radix feature
bit is set in the ibm,pa-features property (which is valid, since
ibm,pa-features is defined to represent the capabilities of the
processor) the guest will try to use radix, resulting in a crash when
it turns the MMU on.
This makes the minimal fix for the current code, which is to disable
radix unless we are running in hypervisor mode.
Fixes: 2bfd65e45e87 ("powerpc/mm/radix: Add radix callbacks for early init routines")
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions