qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Python-lang gdb script to extract x86_64 guest vmcore from qemu coredump
Date: Fri, 20 Sep 2013 18:49:59 +0200	[thread overview]
Message-ID: <523C7CB7.8000109@redhat.com> (raw)
In-Reply-To: <1379015193-16931-1-git-send-email-lersek@redhat.com>

On 09/12/13 21:46, Laszlo Ersek wrote:
> When qemu dies unexpectedly, for example in response to an explicit
> abort() call, or (more importantly) when an external signal is delivered
> to it that results in a coredump, sometimes it is useful to extract the
> guest vmcore from the qemu process' memory image. The guest vmcore might
> help understand an emulation problem in qemu, or help debug the guest.
> 
> This script reimplements (and cuts many features of) the
> qmp_dump_guest_memory() command in gdb/Python,
> 
>   https://sourceware.org/gdb/current/onlinedocs/gdb/Python-API.html
> 
> working off the saved memory image of the qemu process. The docstring in
> the patch (serving as gdb help text) describes the limitations relative to
> the QMP command.
> 
> Dependencies of qmp_dump_guest_memory() have been reimplemented as needed.
> I sought to follow the general structure, sticking to original function
> names where possible. However, keeping it simple prevailed in some places.

Ping.

I'd like to get this upstream because that would help with keeping it in
sync with the memory API / internals.

Boring as hell to review (you'd have to follow through most of the
dump-guest-memory implementation, down to the memory internals; and
probably read the gdb python API docs). OTOH it can't hurt anything
(separate python file in the scripts directory), so maybe it could go in
just with an Acked-by from someone.

Thanks
Laszlo

  reply	other threads:[~2013-09-20 16:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-12 19:46 [Qemu-devel] [PATCH] Python-lang gdb script to extract x86_64 guest vmcore from qemu coredump Laszlo Ersek
2013-09-20 16:49 ` Laszlo Ersek [this message]
2013-10-11 17:54 ` Stefan Hajnoczi
2013-10-28  8:50   ` Laszlo Ersek
2013-10-14  7:45 ` Stefan Hajnoczi
2013-12-16 14:55 ` Michael S. Tsirkin
2013-12-16 23:35 ` Anthony Liguori

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=523C7CB7.8000109@redhat.com \
    --to=lersek@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).