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-users

Re: [Xen-users] xm dump-core and an XP HVM

To: "Akio Takebe" <takebe_akio@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] xm dump-core and an XP HVM
From: "Ryan Persaud" <ryan.persaud@xxxxxxxxx>
Date: Wed, 27 Feb 2008 11:55:01 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 27 Feb 2008 08:55:35 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=zog43X83I8aVrbS2Ow+NXq+27eQ5x8q1bBS8AG2kAa8=; b=cI4pbyg3n+V5XwyzkAI419XgMfhXjqupsjNr/uS+nlMTNPDUqzPBcc+i8CtdKBk9Nxf4k2Z+6RAyz33IN8PPc0Yt04EXAesdCC/r4INJ4cgk+SVbfstmXVAGvTz4JwORG0k0ZAEtsx1tm3kUCNblzl2PQWu8I6paMB9hoQrDyvU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=uefRaEw1SOJUQ1wrMMgmYQPARYG3TX4rbe2wmG+9y9jJwDWAft5+eLv3xncvz83PGLeFYFFfURmjxAC1rvcsaht49mwpuN96sssiQjuW4MRlmUAebu7NZfblof9Cw2KAmiQelkbYe41weeNzNWYfSoqdgzzI1ghR7UBxoRz43+s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9C8792CB2EC8Atakebe_akio@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <db2f1ab10802261340m3fe874f6l9dc6dc13f562d5f1@xxxxxxxxxxxxxx> <9C8792CB2EC8Atakebe_akio@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Akio,

Thanks for the reply.  How would I obtain max_pfn?  In xc_domain_dumpcore_via
_callback, the code pulls nr_pages from the xc_dominfo struct and uses this value as the number of pfns for the domain.  Would max_pfn = nr_pages, or would they be different for some reason?  I'm planning on adding a dump-physical tool, and I'll post the code to xen-devel once I get it working. 

-Ryan



On Wed, Feb 27, 2008 at 5:37 AM, Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> wrote:
Hi, Ryan

Will you try to make a convert tools (from raw memory dump to
Windows fomat dump)? If so, please post it to xen-devel ML.

You can see docs/misc/dump-core-format.txt.
".xen_pages" section is raw memory,
and .xen_p2m or .xen_pfn sections are used
for looking for a memory address we want to see.

You can see them with readelf -x option.

If you want to make a new tools to get a straight dump of physical memory,
it would just do xc_map_foreign_range() from 0 to max_pfn.

Best Regards,

Akio Takebe

>Hello,
>
>This may be more of a developer question.  If so, please let me know, and I
>will ask it there instead.  I am running Xen 3.1 with a Windows XP HVM, and
>I want to get a straight dump of physical memory.  The dump-core command
>adds a lot of ELF cruft, so I commented out the ELF related portions of
>xc_domain_dumpcore_via_callback.  However, when I run dump-core, I am still
>getting quite a few more pages in my dump file than I should (nearly 10MB
>worth).  Has anyone else attempted to do this, or have any idea of what
>might be the issue?  I can understand the utility of having the dump file
>conform to ELF format, but it's also useful to get just the raw memory since
>there are tools out there that can take a Windows physical dump and analyze
>it.
>
>Thanks for the help,
>-Ryan
>
>-------------------------------text/plain-------------------------------
>_______________________________________________
>Xen-users mailing list
>Xen-users@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-users


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