powerpc/xmon: don't access ASDR in VMs
From 91a77dbea3c909ff15c66cded37f1334304a293d Mon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu <[email protected]>
Date: Mon, 6 Jan 2020 13:50:02 -0600
Subject: [PATCH 1/1] 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.
--- arch/powerpc/xmon/xmon.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
arch/powerpc/xmon/xmon.c +4 -5
@@ -1949,15 +1949,14 @@ static void dump_300_sprs(void)printf ("pidr = %.16lx tidr = %.16lx\n" ,mfspr (SPRN_PID ),mfspr (SPRN_TIDR )); -printf ("asdr = %.16lx psscr = %.16lx\n" , -mfspr (SPRN_ASDR ), hv ?mfspr (SPRN_PSSCR ) - :mfspr (SPRN_PSSCR_PR )); +printf ("psscr = %.16lx\n" , + hv ?mfspr (SPRN_PSSCR ) :mfspr (SPRN_PSSCR_PR ));if (!hv)return ; -printf ("ptcr = %.16lx\n" , -mfspr (SPRN_PTCR )); +printf ("ptcr = %.16lx asdr = %.16lx\n" , +mfspr (SPRN_PTCR ),mfspr (SPRN_ASDR ));#endif }
Signature · 1 line
2.17.2
Andrew Donnellan
Reviewed-byQuoted 9 lines · Sukadev Bhattiprolu
From
91a77dbea3c909ff15c66cded37f1334304a293dMon Sep 17 00:00:00 2001
From: Sukadev Bhattiprolu <[email protected]>
Date: Mon, 6 Jan 2020 13:50:02 -0600
Subject: [PATCH 1/1] powerpc/xmon: don't access ASDR in VMsASDR is HV-privileged and must only be accessed in HV-mode. Fixes a Program Check (
0x700) when xmon in a VM dumps SPRs.Signed-off-by Sukadev Bhattiprolu <[email protected]>
I think this should be:
Apart from that
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
Michael Ellerman
AppliedQuoted 9 lines · Sukadev Bhattiprolu
Quoted 1 line
From
91a77dbea3c909ff15c66cded37f1334304a293dMon Sep 17 00:00:00 2001From: Sukadev Bhattiprolu <[email protected]>
Date: Mon, 6 Jan 2020 13:50:02 -0600
Subject: [PATCH 1/1] powerpc/xmon: don't access ASDR in VMsASDR is HV-privileged and must only be accessed in HV-mode. Fixes a Program Check (
0x700) when xmon in a VM dumps SPRs.Signed-off-by Sukadev Bhattiprolu <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/c2a20711fc181e7f22ee5c16c28cb9578af84729
cheers