[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 22/23] vl: log available guest crash information
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 22/23] vl: log available guest crash information |
Date: |
Thu, 16 Feb 2017 15:31:46 +0100 |
From: Anton Nefedov <address@hidden>
There is a suitable log mask for the purpose.
Signed-off-by: Anton Nefedov <address@hidden>
Signed-off-by: Denis V. Lunev <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
vl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/vl.c b/vl.c
index 5993270..27d9829 100644
--- a/vl.c
+++ b/vl.c
@@ -1681,6 +1681,8 @@ void qemu_system_reset(bool report)
void qemu_system_guest_panicked(GuestPanicInformation *info)
{
+ qemu_log_mask(LOG_GUEST_ERROR, "Guest crashed\n");
+
if (current_cpu) {
current_cpu->crash_occurred = true;
}
@@ -1694,6 +1696,15 @@ void qemu_system_guest_panicked(GuestPanicInformation
*info)
}
if (info) {
+ if (info->type == GUEST_PANIC_INFORMATION_KIND_HYPER_V) {
+ qemu_log_mask(LOG_GUEST_ERROR, "HV crash parameters: (%#"PRIx64
+ " %#"PRIx64" %#"PRIx64" %#"PRIx64" %#"PRIx64")\n",
+ info->u.hyper_v.data->arg1,
+ info->u.hyper_v.data->arg2,
+ info->u.hyper_v.data->arg3,
+ info->u.hyper_v.data->arg4,
+ info->u.hyper_v.data->arg5);
+ }
qapi_free_GuestPanicInformation(info);
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 15/23] cpu-exec: remove outermost infinite loop, (continued)
- [Qemu-devel] [PULL 15/23] cpu-exec: remove outermost infinite loop, Paolo Bonzini, 2017/02/16
- [Qemu-devel] [PULL 17/23] qemu-nbd: Implement socket activation., Paolo Bonzini, 2017/02/16
- [Qemu-devel] [PULL 18/23] vl: Move the cpu_synchronize_all_post_init() after generic devices initialization, Paolo Bonzini, 2017/02/16
- [Qemu-devel] [PULL 19/23] Makefile: avoid leaving the temporary QEMU_PKGVERSION header file, Paolo Bonzini, 2017/02/16
- [Qemu-devel] [PULL 20/23] i386/cpu: add crash-information QOM property, Paolo Bonzini, 2017/02/16
- [Qemu-devel] [PULL 21/23] report guest crash information in GUEST_PANICKED event, Paolo Bonzini, 2017/02/16
[Qemu-devel] [PULL 22/23] vl: log available guest crash information,
Paolo Bonzini <=
[Qemu-devel] [PULL 23/23] target-i386: correctly propagate retaddr into SVM helpers, Paolo Bonzini, 2017/02/16
Re: [Qemu-devel] [PULL 00/23] Misc patches for 2017-02-16, no-reply, 2017/02/16
Re: [Qemu-devel] [PULL 00/23] Misc patches for 2017-02-16, Peter Maydell, 2017/02/16