This patch - originally from Jing Liu - was still on my disk and somehow dropped of my attention. Here is a fixed up version. It probably still needs some review and polish. One open aspect is migration. Right now QEMU switches from crashed back into running state after migration (even without this patch). Some fixup will be necessary.
Christian Borntraeger (1): s390x/cpu: expose the guest crash information qapi/run-state.json | 29 ++++++++++++++++++++++++-- target/s390x/cpu.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ target/s390x/cpu.h | 10 +++++++++ target/s390x/helper.c | 5 ++++- target/s390x/kvm.c | 27 +++++++++++++++++++----- vl.c | 6 ++++++ 6 files changed, 126 insertions(+), 8 deletions(-) -- 2.14.3