From: Petr Tesarik <ptesarik@suse.cz>
To: Laszlo Ersek <lersek@redhat.com>
Cc: wency@cn.fujitsu.com, tumanova@linux.vnet.ibm.com,
kexec@lists.infradead.org, qiaonuohan@cn.fujitsu.com,
qemu-devel@nongnu.org,
HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>,
kumagai-atsushi@mxc.nes.nec.co.jp, anderson@redhat.com,
crash-utility@redhat.com
Subject: Re: uniquely identifying KDUMP files that originate from QEMU
Date: Wed, 12 Nov 2014 22:20:47 +0100 [thread overview]
Message-ID: <20141112222047.3b76a80d@hananiah.suse.cz> (raw)
In-Reply-To: <5463C35C.2000103@redhat.com>
On Wed, 12 Nov 2014 21:30:20 +0100
Laszlo Ersek <lersek@redhat.com> wrote:
> adding back a few CC's because this discussion is useful
>
> On 11/12/14 19:43, Petr Tesarik wrote:
> > V Wed, 12 Nov 2014 15:50:32 +0100
> > Laszlo Ersek <lersek@redhat.com> napsáno:
> >
> >> On 11/12/14 09:04, Petr Tesarik wrote:
> >>> On Wed, 12 Nov 2014 12:08:38 +0900 (JST)
> >>> HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com> wrote:
> >>
> >>>> Anyway, phys_base is kernel information. To make it available for qemu
> >>>> side, there's need to prepare a mechanism for qemu to have any access
> >>>> to it.
> >>>
> >>> Yes. I wonder if you can have access without some sort of co-operation
> >>> from the guest kernel itself. I guess not.
> >>
> >> Propagating any kind of additional information from the guest kernel
> >> (which is unprivileged and potentially malicious) to the host-side qemu
> >> process (which is by definition more privileged, although still confined
> >> by various measures) is something we'd explicitly like to avoid.
> >>
> >> Think of it like this. I throw a physical box at you, running Linux,
> >> that has frozen in time. Can "crash" work with nothing else but the
> >> contents of the memory, and information about the CPUs?
> >
> > If only you could save the _complete_ state of the CPU... For example
> > the content of CR3 would be quite useful.
>
> (1) CR3 is already saved, in both the ELF and the kdump compressed formats.
Sweet. :-)
So, there's no need for any heuristics. Since CR3 gives the physical
address of the PML4 table, I can use it to translate __START_KERNEL_map
(0xffffffff80000000UL on all Linux kernels since introduction of
x86_64) to a physical address and compute phys_base from that.
In fact, QEMU could do the same if you can live with hardcoding a
Linux-kernel specific constant into the tool...
Petr T
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2014-11-12 21:21 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 11:22 uniquely identifying KDUMP files that originate from QEMU Laszlo Ersek
2014-11-11 11:46 ` [Qemu-devel] " Peter Maydell
2014-11-11 12:09 ` Petr Tesarik
2014-11-12 3:08 ` HATAYAMA Daisuke
2014-11-12 8:04 ` Petr Tesarik
2014-11-12 14:50 ` Laszlo Ersek
2014-11-12 18:43 ` Petr Tesarik
2014-11-12 20:30 ` Laszlo Ersek
2014-11-12 20:41 ` Dave Anderson
2014-11-12 21:21 ` [Crash-utility] " Dave Anderson
2014-11-12 21:20 ` Petr Tesarik [this message]
2014-11-11 17:27 ` [Qemu-devel] " Christopher Covington
2014-11-12 8:05 ` Petr Tesarik
2014-11-12 13:18 ` Christopher Covington
2014-11-12 13:26 ` Petr Tesarik
2014-11-12 13:28 ` Christopher Covington
2014-11-12 14:36 ` Petr Tesarik
2014-11-12 14:40 ` Laszlo Ersek
2014-11-12 14:10 ` Laszlo Ersek
2014-11-12 14:48 ` Christopher Covington
2014-11-12 15:03 ` Laszlo Ersek
2014-11-12 15:43 ` Christopher Covington
2014-11-12 21:10 ` Petr Tesarik
2014-11-12 14:37 ` Laszlo Ersek
[not found] <mailman.20827.1415774425.22890.kexec@lists.infradead.org>
2014-11-12 14:09 ` Dave Anderson
2014-11-12 15:01 ` Laszlo Ersek
2014-11-12 15:45 ` Dave Anderson
2014-11-13 1:08 ` HATAYAMA Daisuke
2014-11-13 15:21 ` Dave Anderson
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=20141112222047.3b76a80d@hananiah.suse.cz \
--to=ptesarik@suse.cz \
--cc=anderson@redhat.com \
--cc=crash-utility@redhat.com \
--cc=d.hatayama@jp.fujitsu.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
--cc=lersek@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qiaonuohan@cn.fujitsu.com \
--cc=tumanova@linux.vnet.ibm.com \
--cc=wency@cn.fujitsu.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