[PATCH 0/3] ppc: Add QOM interface for machine check injection

Cédric Le Goater posted 3 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211013214042.618918-1-clg@kaod.org
qapi/misc-target.json           | 26 +++++++++++++++
include/hw/ppc/mce.h            | 31 ++++++++++++++++++
include/hw/ppc/pnv_core.h       |  4 +++
include/hw/ppc/spapr_cpu_core.h |  2 ++
target/ppc/cpu.h                |  1 +
hw/ppc/pnv.c                    |  3 ++
hw/ppc/pnv_core.c               | 27 ++++++++++++++++
hw/ppc/spapr.c                  |  4 +++
hw/ppc/spapr_cpu_core.c         | 27 ++++++++++++++++
target/ppc/excp_helper.c        | 12 +++++++
target/ppc/monitor.c            | 56 +++++++++++++++++++++++++++++++++
hmp-commands.hx                 | 20 +++++++++++-
12 files changed, 212 insertions(+), 1 deletion(-)
create mode 100644 include/hw/ppc/mce.h
[PATCH 0/3] ppc: Add QOM interface for machine check injection
Posted by Cédric Le Goater 2 years, 6 months ago
Hello,

This is a rework of Nick's patchset [*] adding mce injection for spapr
and pnv.  

Thanks,

C.

[*] https://lore.kernel.org/qemu-devel/20200325144147.221875-1-npiggin@gmail.com/

Changes :
 - moved definition under "hw/ppc/mce.h"
 - renamed to PPCMceInjection
 - simplified injection call in hmp_mce
 - extended with QMP support 
 - moved code under spapr_cpu_core.c pnv_core.c
 - removed superfluous cpu_synchronize_state()
 - clear previous setting in SPR_SRR1
 

Nicholas Piggin (3):
  ppc: Add QOM interface for machine check injection
  ppc/spapr: Implement mce injection
  ppc/pnv: Implement mce injection

 qapi/misc-target.json           | 26 +++++++++++++++
 include/hw/ppc/mce.h            | 31 ++++++++++++++++++
 include/hw/ppc/pnv_core.h       |  4 +++
 include/hw/ppc/spapr_cpu_core.h |  2 ++
 target/ppc/cpu.h                |  1 +
 hw/ppc/pnv.c                    |  3 ++
 hw/ppc/pnv_core.c               | 27 ++++++++++++++++
 hw/ppc/spapr.c                  |  4 +++
 hw/ppc/spapr_cpu_core.c         | 27 ++++++++++++++++
 target/ppc/excp_helper.c        | 12 +++++++
 target/ppc/monitor.c            | 56 +++++++++++++++++++++++++++++++++
 hmp-commands.hx                 | 20 +++++++++++-
 12 files changed, 212 insertions(+), 1 deletion(-)
 create mode 100644 include/hw/ppc/mce.h

-- 
2.31.1