From: Nikolay Martyanov <nmartyanov@ptsecurity.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: <gdb@sourceware.org>
Subject: Re: Custom core file
Date: Wed, 28 Sep 2016 15:18:00 -0000 [thread overview]
Message-ID: <d1f77270-0385-dbc2-078f-d9df17ce6f2d@ptsecurity.com> (raw)
In-Reply-To: <20160928145850.GA20365@host1.jankratochvil.net>
On 09/28/2016 05:58 PM, Jan Kratochvil wrote:
> On Wed, 28 Sep 2016 15:31:12 +0200, Nikolay Martyanov wrote:
>> I have a self-written bare-metal hypervisor for x86 arch and I'd like to
>> perform postmortem debugging of it's core (not VM, hypervisor itself!).
>> So the idea is to save physical memory state and later use GDB to interpret
>> it.
> I still do not understand what is the goal.
>
> "not VM, hypervisor itself!" would say that running "/usr/bin/gcore "+getpid()
> on the hypervisor process would do the job.
Bare-metal hypervisor doesn't have a representation in process tree of
any guest VM. I do not have running OS where I can do `/usr/bin/gcore`.
It's Xen alike hypervisor =)
> But then "the idea is to save physical memory state" would suggest me you want
> to dump the guest VM - like what guest kdump does or what is in guest Linux
> kernel /proc/kcore (where it is without the physical memory).
>
>
> Jan
Idea is very similar to `kdump`, you are right. But instead of Linux
kernel I have a hypervisor running on a bare-metal. So, in some point of
view, I try to implement my own kdump. And it will dump not Linux kernel
mem, but mem of hypervisor.
next prev parent reply other threads:[~2016-09-28 15:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 13:31 Nikolay Martyanov
2016-09-28 14:28 ` Duane Ellis
2016-09-28 14:58 ` Jan Kratochvil
2016-09-28 15:18 ` Nikolay Martyanov [this message]
2016-09-28 15:33 ` Jan Kratochvil
2016-09-28 16:27 ` Nikolay Martyanov
2016-09-28 15:02 ` Nikolay Martyanov
2016-09-28 15:31 duane
2016-09-28 16:37 ` Nikolay Martyanov
2016-09-28 19:22 ` Nikolay Martyanov
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=d1f77270-0385-dbc2-078f-d9df17ce6f2d@ptsecurity.com \
--to=nmartyanov@ptsecurity.com \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox