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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] xm dump-core and analyzing

To: John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xm dump-core and analyzing
From: Dave Anderson <anderson@xxxxxxxxxx>
Date: 2006年12月12日 08:42:23 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxxxxxxxx>
Delivery-date: 2006年12月12日 05:41:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: <C1A33376.5DC4%keir@xxxxxxxxxxxxx> <457D8B9D.D8A98A8B@xxxxxxxxxx> <20061211235518.GD22288@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
John Levon wrote:
> On Mon, Dec 11, 2006 at 11:47:25AM -0500, Dave Anderson wrote:
>
> > Cool right back at you!
> >
> > Nothing would make me happier than to see the xendump format
> > replaced by an ELF format vmcore -- as long as I can make the
> > p2m translations.
>
> Seconded (thirded?). ELF is a perfect format for this since it's
> extendable and naturally understood by the debuggers we all have.
>
> > I "get by" now with paravirtualized x86/x86_64 writeable page table kernels
> > because even though there are holes in the array of mfn's with respect
> > to their associated pfn's in the xendump file, I can:
> >
> > (1) take the machine address of the cr3 from the xendump header,
> > (2) walk the (writeable) page tables to find the "phys_to_machine_mapping" 
> > symbol,
> > (3) read what's there, and then re-create the phys_to_machine_mapping[] 
> > array of the
> > dumped kernel.
> >
> > And from that point on, all p2m translations can be made by looking at that
> > re-created table for the mfn associated with any pfn, and then looking up
> > the mfn in the xendump corefile.
>
> How do you know what address that symbol is at? It's a requirement for
> us that the dump is completely stand-alone. Ideally we would get this
> issue fixed for 3.0.4, but I haven't found time to work on the full fix
> that Keir suggested :/
>From the vmlinux file -- the crash utility is invoked similarly to gdb:
 $ crash vmlinux dumpfile
Dave
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] [PATCH] more guest debugging aids , Jan Beulich
Next by Date: Re: [Xen-devel] xm dump-core and analyzing , David Pilger
Previous by Thread: Re: [Xen-devel] xm dump-core and analyzing , John Levon
Next by Thread: Re: [Xen-devel] xm dump-core and analyzing , David Pilger
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /