Skip to content

ppc: sreset and machine check injection

Nicholas Piggin qemu-devel 1 version Applied

Status from this message: Applied to ppc-for-5.1.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 18 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5ppc/spapr: tweak change system reset helperhw/ppc/spapr.c target/ppc/cpu.h target/ppc/excp_helper.c+8 -82 replies
2/5ppc/pnv: Add support for NMI interfacehw/ppc/pnv.c+29 -18 replies
3/5nmi: add MCE class for implementing machine check injection commandshmp-commands.hx hw/core/nmi.c include/hw/nmi.h +4 more+113 -24 replies
4/5ppc/spapr: Implement mce injectionhw/ppc/spapr.c include/hw/ppc/spapr.h+57 -01 reply
5/5ppc/pnv: Implement mce injectionhw/ppc/pnv.c target/ppc/cpu.h target/ppc/excp_helper.c+68 -02 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchCédric Le Goater
1/5R-b
2/5R-b
3/5R-b T-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] ppc: sreset and machine check injection

This adds nmi injection for pnv, and similar mce injection for spapr and pnv. The mce injection has already uncovered quite a few bugs in Linux papr guest and one in pnv host code, so it has been already very useful. The mambo simulator can do similar injection but it's a bit more clunky and needs to run KVM and QEMU in the sim to test papr guests, which is quite slow.

HMIs like timebase corruption would be another good candidate for error injection.

Thanks,
Nick

Nicholas Piggin (5):
ppc/spapr: tweak change system reset helper
ppc/pnv: Add support for NMI interface
nmi: add MCE class for implementing machine check injection commands ppc/spapr: Implement mce injection
ppc/pnv: Implement mce injection

 hmp-commands.hx              | 20 ++++++++-
 hw/core/nmi.c                | 61 ++++++++++++++++++++++++++
 hw/ppc/pnv.c                 | 85 +++++++++++++++++++++++++++++++++++-
 hw/ppc/spapr.c               | 63 ++++++++++++++++++++++++--
 include/hw/nmi.h             | 20 +++++++++
 include/hw/ppc/spapr.h       |  3 ++
 include/monitor/hmp-target.h |  1 -
 include/monitor/hmp.h        |  1 +
 monitor/hmp-cmds.c           |  1 +
 target/ppc/cpu.h             |  3 +-
 target/ppc/excp_helper.c     | 17 ++++++--
 target/ppc/monitor.c         | 11 +++++
 12 files changed, 275 insertions(+), 11 deletions(-)
Signature · 1 line
2.23.0