From: Ian Campbell <Ian.Campbell@XenSource.com>
To: Magnus Damm <magnus@valinux.co.jp>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
Kazuo Moriwaka <moriwaka@valinux.co.jp>,
xen-devel@lists.xensource.com, magnus.damm@gmail.com,
Akio Takebe <takebe_akio@jp.fujitsu.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, 22 Nov 2006 18:24:08 +0000 [thread overview]
Message-ID: <1164219848.12608.78.camel@localhost.localdomain> (raw)
In-Reply-To: <20061122071050.24010.92547.sendpatchset@localhost>
Hi Magnus,
On Wed, 2006-11-22 at 16:10 +0900, Magnus Damm wrote:
> Here comes a new version of the Kexec / Kdump patches for x86 Xen. Not much
> has changed since last release, just a minor fix for kdump on x86_64.
>
> Patches to make kexec-tools Xen aware have recently been sent to the fastboot
> list. These patches will be merged in the kexec-tools-testing tree in the
> near future.
I've taken these patches out for a spin. They look pretty good. I've got
a couple of comments.
Firstly the patches break native kernel compile. You add usages of
kexec_page_to_pfn() and friends to kernel/kexec.c but only include
kexec-xen.h ifdef CONFIG_XEN. I fixed it with by removing the ifdef but
the preferred way would be to move the native definitions of kexec_*
into include/asm-i386/kexec.h and make a xen specific copy in
include/asm-i386/mach-xen/asm/kexec.h with the xen versions patched in.
Alternatively you could just merge kexec-xen.h into kexec.h.
My second comment is WRT to the ELF notes which you add to the kdump.
You include a standard PRSTATUS core ELF note per physical CPU but there
is some useful physical processor state which is not included in this
structure -- most importantly CR3.
Since the amount of physical CPU state which is not already included in
PRSTATUS is pretty small I think you could just include the whole lot in
a Xen specific note per PCPU. I'd basically include anything which is in
a Xen panic/oops message but not in PRSTATUS, that's C[0,2,3,4].
Including the debug registers might be handy too. If there was some
standard extended PRSTATUS note format for these extra things we could
use that would be even better but I don't know of one (but then I don't
really know about these things ;-)).
You also store dom0's pfn_to_mfn_frame_list_list in a Xen specific note.
What is that used for? Given a Xen symbol table it should be possible to
locate the shared info for any domain via the xen mappings and hence
find the p2m table that way. m2p is at a known virtual address already.
The contents of the h/v taint bitmap would be another interesting thing
to include in the Xen note.
Cheers,
Ian.
next prev parent reply other threads:[~2006-11-22 18:24 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 ` Ian Campbell [this message]
2006-11-27 9:19 ` [PATCH 00/04] Kexec / Kdump: Release 20061122 (xen-unstable-12502) 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
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=1164219848.12608.78.camel@localhost.localdomain \
--to=ian.campbell@xensource.com \
--cc=horms@verge.net.au \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=magnus.damm@gmail.com \
--cc=magnus@valinux.co.jp \
--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.