From: Peter Maydell <peter.maydell@linaro.org>
To: Laszlo Ersek <lersek@redhat.com>
Cc: Ekaterina Tumanova <tumanova@linux.vnet.ibm.com>,
kexec@lists.infradead.org,
qemu devel list <qemu-devel@nongnu.org>,
Qiao Nuohan <qiaonuohan@cn.fujitsu.com>,
Dave Anderson <anderson@redhat.com>,
kumagai-atsushi@mxc.nes.nec.co.jp, crash-utility@redhat.com
Subject: Re: [Qemu-devel] uniquely identifying KDUMP files that originate from QEMU
Date: Tue, 11 Nov 2014 11:46:52 +0000 [thread overview]
Message-ID: <CAFEAcA86kxVXG6uW2mt3Er8s8zjcVBLE7AM0UEWKF-nTuSjm9w@mail.gmail.com> (raw)
In-Reply-To: <5461F18C.2080400@redhat.com>
On 11 November 2014 11:22, Laszlo Ersek <lersek@redhat.com> wrote:
> For this reason, the kdump preparation logic in QEMU hardcodes a number
> of fields in the kdump header. The direct issue is the "phys_base"
> field. Refer to dump.c, functions create_header32(), create_header64(),
> and "include/sysemu/dump.h", macro PHYS_BASE (with the replacement text
> "0").
>
> http://git.qemu.org/?p=qemu.git;a=blob;f=dump.c;h=9c7dad8f865af3b778589dd0847e450ba9a75b9d;hb=HEAD
>
> http://git.qemu.org/?p=qemu.git;a=blob;f=include/sysemu/dump.h;h=7e4ec5c7d96fb39c943d970d1683aa2dc171c933;hb=HEAD
>
> This works in most cases, because the guest Linux kernel indeed tends to
> be loaded at guest-phys address 0. However, when the guest Linux kernel
> is booted on top of OVMF (which has a somewhat unusual UEFI memory map),
> then the guest Linux kernel is loaded at 16MB, thereby getting out of
> sync with the phys_base=0 setting visible in the KDUMP header.
Presumably this is also not going to work for machines other
than the x86 PC, where physical memory may well not start at
address zero...
-- PMM
next prev parent reply other threads:[~2014-11-11 11:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 11:22 [Qemu-devel] uniquely identifying KDUMP files that originate from QEMU Laszlo Ersek
2014-11-11 11:46 ` Peter Maydell [this message]
2014-11-11 17:27 ` 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] ` <20141111130913.11eec0a3@hananiah.suse.cz>
[not found] ` <20141112.120838.303682123986142686.d.hatayama@jp.fujitsu.com>
[not found] ` <20141112090441.3ee42632@hananiah.suse.cz>
[not found] ` <546373B8.70103@redhat.com>
[not found] ` <20141112194325.246ff381@hananiah.suse.cz>
2014-11-12 20:30 ` Laszlo Ersek
2014-11-12 20:41 ` Dave Anderson
2014-11-12 21:21 ` [Qemu-devel] [Crash-utility] " Dave Anderson
2014-11-12 21:20 ` [Qemu-devel] " Petr Tesarik
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=CAFEAcA86kxVXG6uW2mt3Er8s8zjcVBLE7AM0UEWKF-nTuSjm9w@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=anderson@redhat.com \
--cc=crash-utility@redhat.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 \
/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).