From nobody Mon Feb 9 11:32:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1486653348126629.9697775032574; Thu, 9 Feb 2017 07:15:48 -0800 (PST) Received: from localhost ([::1]:38461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqRm-0006EO-Gp for importer@patchew.org; Thu, 09 Feb 2017 10:15:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cbqPx-0004tZ-Ga 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 1cbqPt-0007aV-Hn for qemu-devel@nongnu.org; Thu, 09 Feb 2017 10:13:53 -0500 Received: from mailhub.sw.ru ([195.214.232.25]:46753 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 1cbqPt-0007Zx-7B for qemu-devel@nongnu.org; Thu, 09 Feb 2017 10:13:49 -0500 Received: from iris.sw.ru (msk-vpn.virtuozzo.com [195.214.232.6]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id v19FDQTR028293; Thu, 9 Feb 2017 18:13:28 +0300 (MSK) From: "Denis V. Lunev" To: qemu-devel@nongnu.org Date: Thu, 9 Feb 2017 18:13:26 +0300 Message-Id: <1486653206-14553-4-git-send-email-den@openvz.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486653206-14553-1-git-send-email-den@openvz.org> References: <1486653206-14553-1-git-send-email-den@openvz.org> X-detected-operating-system: by eggs.gnu.org: OpenBSD 3.x [fuzzy] X-Received-From: 195.214.232.25 Subject: [Qemu-devel] [PATCH v3 3/3] vl: log available guest crash information X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anton Nefedov , Eduardo Habkost , Marcelo Tosatti , Markus Armbruster , Paolo Bonzini , "Denis V . Lunev" , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Anton Nefedov There is a suitable log mask for the purpose. 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 --- vl.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vl.c b/vl.c index d5a183f..873aa4e 100644 --- a/vl.c +++ b/vl.c @@ -1709,6 +1709,8 @@ void qemu_system_reset(bool report) =20 void qemu_system_guest_panicked(GuestPanicInformation *info) { + qemu_log_mask(LOG_GUEST_ERROR, "Guest crashed\n"); + if (current_cpu) { current_cpu->crash_occurred =3D true; } @@ -1723,6 +1725,13 @@ void qemu_system_guest_panicked(GuestPanicInformatio= n *info) =20 if (info) { if (info->type =3D=3D 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); g_free(info->u.hyper_v.data); } g_free(info); --=20 2.7.4