All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Levon <levon@movementarian.org>
To: Dave Anderson <anderson@redhat.com>
Cc: xen-devel@lists.xensource.com, Keir Fraser <keir@xensource.com>
Subject: Re: xm dump-core and analyzing
Date: Mon, 11 Dec 2006 23:55:18 +0000	[thread overview]
Message-ID: <20061211235518.GD22288@totally.trollied.org> (raw)
In-Reply-To: <457D8B9D.D8A98A8B@redhat.com>

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 :/

regards
john

  reply	other threads:[~2006-12-11 23:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1Gtma9-0003cb-Qr@host-192-168-0-1-bcn-london>
2006-12-11 15:34 ` xm dump-core and analyzing Dave Anderson
2006-12-11 15:48   ` Keir Fraser
2006-12-11 15:59     ` Dave Anderson
2006-12-11 16:10       ` Keir Fraser
2006-12-11 16:47         ` Dave Anderson
2006-12-11 23:55           ` John Levon [this message]
2006-12-12 13:42             ` Dave Anderson
2006-12-12  6:15         ` David Pilger
2006-12-12 12:20           ` John Levon
2006-12-12 13:52             ` David Pilger
2006-12-11 23:48     ` John Levon
2006-12-11 13:10 David Pilger
2006-12-11 13:22 ` Akio Takebe
2006-12-11 14:55   ` David Pilger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061211235518.GD22288@totally.trollied.org \
    --to=levon@movementarian.org \
    --cc=anderson@redhat.com \
    --cc=keir@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.