From: "Denis V. Lunev" <den@openvz.org>
To: qemu-devel@nongnu.org
Cc: Anton Nefedov <anton.nefedov@virtuozzo.com>,
"Denis V . Lunev" <den@openvz.org>
Subject: [Qemu-devel] [PATCH v4 3/3] vl: log available guest crash information
Date: Tue, 14 Feb 2017 09:25:24 +0300 [thread overview]
Message-ID: <1487053524-18674-4-git-send-email-den@openvz.org> (raw)
In-Reply-To: <1487053524-18674-1-git-send-email-den@openvz.org>
From: Anton Nefedov <anton.nefedov@virtuozzo.com>
There is a suitable log mask for the purpose.
Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
---
vl.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/vl.c b/vl.c
index d68254b..903c46d 100644
--- a/vl.c
+++ b/vl.c
@@ -1709,6 +1709,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;
}
@@ -1722,6 +1724,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);
}
}
--
2.7.4
next prev parent reply other threads:[~2017-02-14 6:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 6:25 [Qemu-devel] [PATCH v3 0/3] kvm: report available guest crash parameters Denis V. Lunev
2017-02-14 6:25 ` [Qemu-devel] [PATCH v4 1/3] i386/cpu: add crash-information QOM property Denis V. Lunev
2017-02-15 19:41 ` Eric Blake
2017-02-20 0:53 ` Markus Armbruster
2017-02-20 18:32 ` Daniel P. Berrange
2017-02-14 6:25 ` [Qemu-devel] [PATCH v4 2/3] report guest crash information in GUEST_PANICKED event Denis V. Lunev
2017-02-15 19:43 ` Eric Blake
2017-02-14 6:25 ` Denis V. Lunev [this message]
2017-02-15 16:47 ` [Qemu-devel] [PATCH v3 0/3] kvm: report available guest crash parameters Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1487053524-18674-4-git-send-email-den@openvz.org \
--to=den@openvz.org \
--cc=anton.nefedov@virtuozzo.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).