From: Olaf Hering <olaf@aepfle.de>
To: Jan Beulich <JBeulich@novell.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot
Date: Thu, 28 Jul 2011 07:25:00 +0200 [thread overview]
Message-ID: <20110728052500.GA13940@aepfle.de> (raw)
In-Reply-To: <4E30A9BC0200007800073B1F@nat28.tlf.novell.com>
On Thu, Jul 28, Jan Beulich wrote:
> >>> On 26.07.11 at 13:52, Olaf Hering <olaf@aepfle.de> wrote:
> > Unregister the shutdown and sysrq watch during kexec. The watches can
> > not be re-registered in the kexec kernel because they are still seen as
> > busy by xenstore.
>
> This and subsequent patches don't look right to me from a conceptual
> pov: If the kexec attempt is due to a crash, the dying kernel should be
> doing as little as possible, and the new kernel should really do the
> cleanup. The more logic gets added to the shutdown path of the old
> kernel, the more likely it'll become that the kexec attempt will fail.
kexec is about reboot, kdump is about crash handling. Both use different
code paths.
The kexec code path is like a reboot without going through the firmware.
The kdump kernel runs in its own memory range, so memory corruption does
not appear to happen (with the sles11sp1 kernel + my kdump patch).
>
> If this requires changes outside the kernel (e.g. state reset helpers
> in hypervisor or tools) - so be it.
Are you suggesting that there have to be ways for a domU to query the
state of its registered watches and shut them all down during very early
boot? And what about the event/irq handling? There is currently no way
to check what virq is bound to what port, other than looping through all
possible ports and see if one matches the requested virq.
Olaf
next prev parent reply other threads:[~2011-07-28 5:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-27 23:13 [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot Jan Beulich
2011-07-28 5:25 ` Olaf Hering [this message]
2011-07-28 10:52 ` Ian Campbell
2011-07-28 11:00 ` Keir Fraser
2011-07-28 12:52 ` Ian Campbell
2011-07-28 11:02 ` Olaf Hering
2011-07-28 12:56 ` Ian Campbell
2011-07-28 14:07 ` Olaf Hering
2011-07-28 14:13 ` Keir Fraser
2011-07-28 19:50 ` Olaf Hering
2011-07-28 20:30 ` Keir Fraser
2011-08-01 13:01 ` Olaf Hering
2011-08-01 14:35 ` Keir Fraser
2011-07-28 16:09 ` Jan Beulich
2011-07-28 11:37 ` Stefano Stabellini
-- strict thread matches above, loose matches on Subject: below --
2011-07-26 11:52 [PATCH 0/6] misc changes for kexec in pv-on-hvm guests Olaf Hering
2011-07-26 11:52 ` [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot Olaf Hering
2011-07-26 14:17 ` Konrad Rzeszutek Wilk
2011-07-26 14:28 ` Olaf Hering
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=20110728052500.GA13940@aepfle.de \
--to=olaf@aepfle.de \
--cc=JBeulich@novell.com \
--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.