]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: log the crash information for S390
authorBjoern Walk <bwalk@linux.vnet.ibm.com>
Tue, 27 Feb 2018 09:32:56 +0000 (10:32 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 6 Mar 2018 13:55:12 +0000 (08:55 -0500)
commita07a9146bba14d92f851d206319e700ffd842bda
tree1936b4abcf116d29ff233172396e4e11a732d98f
parentab9e2041c0e0a3389c095a2629bfb520852cd56b
qemu: log the crash information for S390

Since QEMU 2.12 commit id '4ada99ade' guest crash information for
S390 is available in the QEMU monitor, e.g.:

  {
    "timestamp": {
        "seconds": 1518004739,
        "microseconds": 552563
    },
    "event": "GUEST_PANICKED",
    "data": {
        "action": "pause",
        "info": {
            "core": 0,
            "psw-addr": 1102832,
            "reason": "disabled-wait",
            "psw-mask": 562956395872256,
            "type": "s390"
        }
    }
  }

Let's log this information into the domain log file, e.g.:

    2018-02-08 13:11:26.075+0000: panic s390: core='0' psw-mask='0x0002000180000000' psw-addr='0x000000000010f146' reason='disabled-wait'

Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c