]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xmon: don't access ASDR in VMs
authorSukadev Bhattiprolu <sukadev@linux.ibm.com>
Mon, 6 Jan 2020 19:50:02 +0000 (13:50 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Jan 2020 01:04:08 +0000 (11:04 +1000)
commitc2a20711fc181e7f22ee5c16c28cb9578af84729
tree9d128e5075a6f3229d0acedf0a0cd2172bf17df9
parenteeb09917c138ccd6d9a1c8410891ca2fa5feb5ea
powerpc/xmon: don't access ASDR in VMs

ASDR is HV-privileged and must only be accessed in HV-mode.
Fixes a Program Check (0x700) when xmon in a VM dumps SPRs.

Fixes: d1e1b351f50f ("powerpc/xmon: Add ISA v3.0 SPRs to SPR dump")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200107021633.GB29843@us.ibm.com
arch/powerpc/xmon/xmon.c