WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xm pause <domain>

> I've written the code for a generic xen guest coredump, I'll write a
> separate tool to post-process the header into something either LKCD or
> FreeBSD's gdb will recognize.

Cool.

> Now the question is, can you give me some guidance on adding it into
> xend - it doesn't look as straightforward as I had hoped.

You'll need a function in tools/libxc/ that'll do the dump (I guess this is 
what you have already).

Then you'll need to add a Python wrapper for this function in 
tools/python/xen/lowlevel/xc/xc.c.  This shouldn't be too hard, using the 
other functions in there as a template...

Finally you'll need to provide a means to dump using the xm tool.  This 
touches quite a few files, I'm afraid, although none of them require complex 
changes...

It looks like you'll need to edit:
* tools/python/xen/xm/main.py to add a subprogram for doing a dump.
* tools/python/xen/xend/XendClient.py to add a method for requesting a dump 
from the server
* tools/python/xen/xend/server/SrvDomain.py to add an operation for dumping a 
domain (this will get activated when the client makes a request)
* tools/python/xen/xend/XendDomain.py to add a domain_dump() method to be 
called by SrvDomain.py (this will pause the domain, call your Xc dump 
function and unpause it)

You may find it helpful to compare the call paths triggered by a destroy or a 
save, which will be similar to what you want.

For icing on the cake, you could also rig up some kind of dumping in the 
reap() function in XendDomain.py to autodump crashed domains before 
restarting / destroying them.

HTH,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel