Received: from eggs.gnu.org ([2001:4830:134:3::10]:46355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqPx-0004ta-HF for qemu-devel@nongnu.org; Thu, 09 Feb 2017 10:13:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cbqPv-0007as-Bt for qemu-devel@nongnu.org; Thu, 09 Feb 2017 10:13:53 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:4073 helo=relay.sw.ru) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cbqPu-0007ab-V9 for qemu-devel@nongnu.org; Thu, 09 Feb 2017 10:13:51 -0500 From: "Denis V. Lunev" Date: Thu, 9 Feb 2017 18:13:23 +0300 Message-Id: <1486653206-14553-1-git-send-email-den@openvz.org> Subject: [Qemu-devel] [PATCH v2 0/3] kvm: report available guest crash parameters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Denis V. Lunev" , Anton Nefedov , Paolo Bonzini , Marcelo Tosatti , Richard Henderson , Eduardo Habkost , Eric Blake , Markus Armbruster Windows reports BSOD parameters through Hyper-V crash MSRs. This information is very useful for initial crash analysis and thus it would be nice to see it in the QEMU log file. There is suitable log mask for the purpose. Linux guest does not provide this information, but still it would be nice to log that we have crashed. Changes since v1: - patches resplit - created property to query crash parameters - crash parameters added to panic event Signed-off-by: Anton Nefedov Signed-off-by: Denis V. Lunev CC: Paolo Bonzini CC: Marcelo Tosatti CC: Richard Henderson CC: Eduardo Habkost CC: Eric Blake CC: Markus Armbruster Anton Nefedov (3): i386/cpu: add crash-information QOM property report guest crash information in GUEST_PANICKED event vl: log available guest crash information hw/misc/pvpanic.c | 2 +- include/qom/cpu.h | 10 +++++++++ include/sysemu/kvm.h | 2 ++ include/sysemu/sysemu.h | 2 +- kvm-all.c | 3 ++- qapi-schema.json | 24 +++++++++++++++++++++ qapi/event.json | 6 ++++-- qom/cpu.c | 11 ++++++++++ stubs/Makefile.objs | 1 + stubs/kvm-crash.c | 8 +++++++ target/i386/cpu.c | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ target/i386/cpu.h | 3 +++ target/i386/kvm.c | 41 ++++++++++++++++++++++++++++++++++++ target/s390x/kvm.c | 4 ++-- vl.c | 23 ++++++++++++++++++--- 15 files changed, 185 insertions(+), 10 deletions(-) create mode 100644 stubs/kvm-crash.c -- 2.7.4