From: Gerd Hoffmann <kraxel@suse.de>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: Magnus Damm <magnus@valinux.co.jp>,
Xen devel list <xen-devel@lists.xensource.com>,
Horms <horms@verge.net.au>
Subject: Re: kexec trouble
Date: Wed, 06 Dec 2006 11:31:04 +0100 [thread overview]
Message-ID: <45769BE8.90701@suse.de> (raw)
In-Reply-To: <aec7e5c30612060141r450318fcxf6a094e6c061f28a@mail.gmail.com>
Hi,
> We chit-chatted a bit, but I don't remember us talking about any
> implementation details.
Discussed briefly possible code sharing, that there likely isn't much to
share because we have two very different approachs to take, and that we
are probably best off just having two machine_kexec() versions for
dom0/domU. No details yet how to actually implement that, but at least
the need for some kind of runtime switching should have been clear.
> I've heard complaints and doubts about using sparse together with
> patches, but when I ask for a better alternative it's always awfully
> silent. We could have copied the files into sparse and applied our
> patches, but duplicating files seemed a step in the wrong direction.
For backports and code planned for quick mainline merge maintaining as
patches is fine, makes it easier to move forward once stuff is merged
and/or the xen linux tree is updated to a newer upstream kernel.
For code which likely lives longer in the xen tree (especially
kexec-generic.patch which has almost no chance to be accepted mainline
as-is) it is a pain to deal with as patch.
I'd love to see kernel/kexec.c not being touched at all, but I think
that is impossible for dom0 kexec (due to range checks which must happen
in machine not guest address space for example).
>> So we can make machine_kexec() + friends function pointers, rename the
>> native functions and initialize the function pointers to the native
>> versions. I think it should even be possible to make them function
>> pointers for i386/x86_64 archs only. Things keep working with
>> CONFIG_XEN=n then, and with CONFIG_XEN=y the initialization function
>> just switches the function pointers (depending on is_initial_domain()).
>> This also eliminates the first set of #ifdefs in kernel/kexec.c ;)
>
> Sounds exactly what I would have done! =)
Great, so lets do that.
> You seem to code with the goal of having something that will be
> directly acceptable for mainilne, but my goal is to write as simple
> code as possible which should be easy to adjust to whatever framework
> that exists at the time of mainline merge.
Given that the framework will be paravirt_ops function pointers fit
nicely ;)
cheers,
Gerd
--
Gerd Hoffmann <kraxel@suse.de>
next prev parent reply other threads:[~2006-12-06 10:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-05 14:37 kexec trouble Gerd Hoffmann
2006-12-05 15:53 ` Magnus Damm
2006-12-05 16:55 ` Gerd Hoffmann
2006-12-06 4:08 ` Magnus Damm
2006-12-06 8:48 ` Gerd Hoffmann
2006-12-06 9:41 ` Magnus Damm
2006-12-06 10:31 ` Gerd Hoffmann [this message]
2006-12-06 11:11 ` Magnus Damm
2006-12-06 13:23 ` Gerd Hoffmann
2006-12-06 13:40 ` Muli Ben-Yehuda
2006-12-07 11:24 ` Gerd Hoffmann
2006-12-08 4:15 ` Magnus Damm
2006-12-08 10:01 ` Gerd Hoffmann
2006-12-08 10:24 ` Ian Campbell
2006-12-08 11:28 ` Gerd Hoffmann
2006-12-08 11:32 ` Keir Fraser
2006-12-08 11:52 ` Ian Campbell
2006-12-08 15:49 ` Ian Campbell
2006-12-06 8:37 ` Keir Fraser
2006-12-06 9:08 ` Magnus Damm
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=45769BE8.90701@suse.de \
--to=kraxel@suse.de \
--cc=horms@verge.net.au \
--cc=magnus.damm@gmail.com \
--cc=magnus@valinux.co.jp \
--cc=xen-devel@lists.xensource.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 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.