[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH][XEN]xm dump command add on



can we call this "xm core" or "xm crash"?
"dump" has so many meanings, I had plans to use it for "register" and "memory" dump, tho I think even those should have better names.
thoughts?
-JX
On Aug 14, 2006, at 4:03 AM, Ken Hironaka wrote:

This adds the xm dump command to xend.
The command outputs the memory contents of the specified domU to a
coredump file.
This will fail if tried on dom0.
The interface is as follows:

xm dump [-L][-C] <domID> [output path]

-L Live dump:By default, xm dump does an xm pause, unpause before and
after taking the dump, respectively. This option disables the
pause/unpause and simply takes the dump.

-C crash dump: This executes an xm destroy after the dump file is
complete.
The output path is optional, and if it is not specified, the path will
be
/var/xen/dump/<domU name>.<domU ID>.core

This command uses the existant dumpCore(), which has been used for
coredump when a domU crashed.
In this patch, the xc_domain_dumpcore_via_callback() in xc_core.c of
libxc is also modified. Previously, the
xc_domain_dumpcore_via_callback() did not respond to error when
copy_from_domain_page() failed. In other words, the dump core remained
silent even if mapping the domain memory failed and its page could not
be copied. When this happened, erroneous data had been dumped to the
file without the user realizing it. Now, it has been modified so that if
copy_from_domain_page fails, this fact is recorded in the logfile.
However even in such cases, the dumping will continue as before.

Signed-off-by: Ken Hironaka <hironaka.ken@xxxxxxxxxxxxxxxx>

Reference
http://lists.xensource.com/archives/html/xen-devel/2006-08/ msg00181.html http://lists.xensource.com/archives/html/xen-devel/2006-08/ msg00259.html http://lists.xensource.com/archives/html/xen-devel/2006-08/ msg00483.html
<xmdump_patch.diff>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.