linux-stable/arch/powerpc/xmon
Cédric Le Goater 7d0b30d264 powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL
[ Upstream commit c3e0dbd7f7 ]

Currently, the xmon 'dx' command calls OPAL to dump the XIVE state in
the OPAL logs and also outputs some of the fields of the internal XIVE
structures in Linux. The OPAL calls can only be done on baremetal
(PowerNV) and they crash a pseries machine. Fix by checking the
hypervisor feature of the CPU.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190814154754.23682-2-clg@kaod.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-07 18:55:01 +02:00
..
ansidecl.h
dis-asm.h
Makefile powerpc: Disable -Wbuiltin-requires-header when setjmp is used 2019-01-13 10:01:03 +01:00
nonstdio.c
nonstdio.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ppc-dis.c powerpc/xmon: Fix opcode being uninitialized in print_insn_powerpc 2019-04-05 22:31:30 +02:00
ppc-opc.c powerpc updates for 4.11 part 2 2017-03-01 10:10:16 -08:00
ppc.h powerpc/xmon: Enable disassembly files (compilation changes) 2017-02-15 20:02:42 +11:00
spr_access.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spu-dis.c
spu-insns.h
spu-opc.c
spu.h
xmon.c powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL 2019-10-07 18:55:01 +02:00