This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Patch][RFC] Support "xm dump" (is Re: [Xen-devel] Re: [Patch] Enable "s

To: Horms <horms@xxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Patch][RFC] Support "xm dump" (is Re: [Xen-devel] Re: [Patch] Enable "sysrq c" handler for domU coredump)
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Thu, 03 Aug 2006 09:18:23 +0900
Cc: Muli Ben-Yehuda <muli@xxxxxxxxxx>, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>, Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Delivery-date: Wed, 02 Aug 2006 17:21:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <52C6B555FA5977takebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060801092622.GA28388@xxxxxxxxxxxx> <52C6B555FA5977takebe_akio@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Keir and Horms

This patch is sample patch.
I make "xm dump" command with dom0_ops.
xc_domain_dump() only call __domain_crash().
After __domain_crash(), xend start dumpcore 
because shutdown status is crash.
(When enabel-dump in xend-cofig.sxp is yes)

The xm dump usage is below.
1. vi /etc/xen/xend-config.sxp
   (enable-dump yes)
2. xend start
3. xm create domU
4. xm dump domU
5. coredump is created in /var/xen/dump/

I think this way can probably dump both nonHVM and HVM domain's core.
But I tested only nonHVM domain (because I don't have HVM machine).

How about this implementation?

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

Best Regards,

Akio Takebe

Attachment: xm_dump.patch
Description: Binary data

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>