From: Magnus Damm <magnus@valinux.co.jp>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
Kazuo Moriwaka <moriwaka@valinux.co.jp>,
xen-devel@lists.xensource.com,
Ian Campbell <Ian.Campbell@xensource.com>,
Akio Takebe <takebe_akio@jp.fujitsu.com>,
Magnus Damm <magnus.damm@gmail.com>,
Isaku Yamahata <yamahata@valinux.co.jp>,
Horms <horms@verge.net.au>
Subject: Re: [PATCH 00/04] Kexec / Kdump: Release 20061122 (xen-unstable-12502)
Date: Wed, 29 Nov 2006 17:17:42 +0900 [thread overview]
Message-ID: <1164788262.30816.41.camel@localhost> (raw)
In-Reply-To: <C192ED37.5016%Keir.Fraser@cl.cam.ac.uk>
On Wed, 2006-11-29 at 07:54 +0000, Keir Fraser wrote:
> On 29/11/06 4:30 am, "Magnus Damm" <magnus.damm@gmail.com> wrote:
> > In user space the kexec-tool then builds an elf header which points
> > out where the notes are located in machine address space (using
> > /proc/iomem). This header is then passed on to the secondary crash
> > kernel which (for some reason) compacts all per-cpu PT_NOTE program
> > headers into one which will be present in the final vmcore image. At
> > this compacting stage we need to have data present for _all_ cpus, and
> > the data for cpus that are not present should contain just zeros.
>
> How does kexec discover how many cpus is 'all cpus'?
The kexec tool creates (at load time) one PT_NOTE program header per
note exported through /proc/iomem. The number of PT_NOTE program headers
is the same as the NR_CPUS constant in the hypervisor.
The seconday kernel is not aware of how many cpus that was used by the
first kernel, it only expects to find valid data pointed out by the
PT_NOTE program headers. Valid data in this case is either ELF note
formatted data or zeroed memory which happens to be valid end-of-notes
ELF note data as well.
So giving the secondary kernel a pointer to heap does not work very
well. =)
/ magnus
next prev parent reply other threads:[~2006-11-29 8:17 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-22 7:10 [PATCH 00/04] Kexec / Kdump: Release 20061122 (xen-unstable-12502) Magnus Damm
2006-11-22 7:10 ` [PATCH 01/04] Kexec / Kdump: Generic code Magnus Damm
2006-11-22 7:11 ` [PATCH 02/04] Kexec / Kdump: Code shared between x86_32 and x86_64 Magnus Damm
2006-11-22 7:11 ` [PATCH 03/04] Kexec / Kdump: x86_32 specific code Magnus Damm
2006-11-22 7:11 ` [PATCH 04/04] Kexec / Kdump: x86_64 " Magnus Damm
2006-11-22 18:24 ` [PATCH 00/04] Kexec / Kdump: Release 20061122 (xen-unstable-12502) Ian Campbell
2006-11-27 9:19 ` Magnus Damm
2006-11-27 12:09 ` Ian Campbell
2006-11-28 8:28 ` Magnus Damm
2006-11-28 9:26 ` Ian Campbell
2006-11-27 15:27 ` Dave Anderson
2006-11-28 8:30 ` Magnus Damm
2006-11-28 14:01 ` Dave Anderson
2006-11-29 2:35 ` Magnus Damm
2006-11-29 9:36 ` Ian Campbell
2006-11-29 10:59 ` Magnus Damm
2006-11-29 11:06 ` Ian Campbell
2006-11-28 18:24 ` Ian Campbell
2006-11-28 18:50 ` Keir Fraser
2006-11-29 4:30 ` Magnus Damm
2006-11-29 7:54 ` Keir Fraser
2006-11-29 8:17 ` Magnus Damm [this message]
2006-11-29 9:35 ` Ian Campbell
2006-11-29 11:13 ` Magnus Damm
2006-11-29 11:42 ` Ian Campbell
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=1164788262.30816.41.camel@localhost \
--to=magnus@valinux.co.jp \
--cc=Ian.Campbell@xensource.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=horms@verge.net.au \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=magnus.damm@gmail.com \
--cc=moriwaka@valinux.co.jp \
--cc=takebe_akio@jp.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
--cc=yamahata@valinux.co.jp \
/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.