All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] misc changes for kexec in pv-on-hvm guests
@ 2011-07-26 11:52 Olaf Hering
  2011-07-26 11:52 ` [PATCH 1/6] xen: use static initializers in xen-balloon.c Olaf Hering
                   ` (5 more replies)
  0 siblings, 6 replies; 34+ messages in thread
From: Olaf Hering @ 2011-07-26 11:52 UTC (permalink / raw)
  To: xen-devel



The following series partly fixes kexec in a pv-on-hvm guest. After a few
iterations of kexec boots the guest will panic with memory corruption.

A fixed kexec-tools-2.0.2 package is required:
http://lists.infradead.org/pipermail/kexec/2011-May/005026.html

Olaf

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches during reboot
@ 2011-07-27 23:13 Jan Beulich
  2011-07-28  5:25 ` Olaf Hering
  2011-07-28 11:37 ` Stefano Stabellini
  0 siblings, 2 replies; 34+ messages in thread
From: Jan Beulich @ 2011-07-27 23:13 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1965 bytes --]

>>> 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.

If this requires changes outside the kernel (e.g. state reset helpers
in hypervisor or tools) - so be it.

Jan

> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> 
> ---
>  drivers/xen/manage.c |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> Index: linux-3.0/drivers/xen/manage.c
> ===================================================================
> --- linux-3.0.orig/drivers/xen/manage.c
> +++ linux-3.0/drivers/xen/manage.c
> @@ -320,6 +320,18 @@ static int shutdown_event(struct notifie
>  return NOTIFY_DONE;
>  }
>  
> +static void xenbus_disable_shutdown_watcher(void)
> +{
> +unregister_xenbus_watch(&shutdown_watch);
> +#ifdef CONFIG_MAGIC_SYSRQ
> +unregister_xenbus_watch(&sysrq_watch);
> +#endif
> +}
> +
> +static struct syscore_ops xenbus_watcher_syscore_ops = {
> +.shutdown = xenbus_disable_shutdown_watcher,
> +};
> +
>  int xen_setup_shutdown_event(void)
>  {
>  static struct notifier_block xenstore_notifier = {
> @@ -329,6 +341,7 @@ int xen_setup_shutdown_event(void)
>  if (!xen_domain())
>  return -ENODEV;
>  register_xenstore_notifier(&xenstore_notifier);
> +register_syscore_ops(&xenbus_watcher_syscore_ops);
>  
>  return 0;
>  }
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com 
> http://lists.xensource.com/xen-devel 



[-- Attachment #1.2: HTML --]
[-- Type: text/html, Size: 3447 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2011-08-01 14:35 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 1/6] xen: use static initializers in xen-balloon.c Olaf Hering
2011-07-26 14:16   ` Konrad Rzeszutek Wilk
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
2011-07-26 11:52 ` [PATCH 3/6] xen/hvm kexec: unregister memory/target watch in xen-balloon.c Olaf Hering
2011-07-26 14:18   ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 4/6] xen/hvm kexec: unbind debugirq during reboot Olaf Hering
2011-07-26 14:19   ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 5/6] xen/hvm kexec: unregister timer interrupt " Olaf Hering
2011-07-26 14:22   ` Konrad Rzeszutek Wilk
2011-07-27 14:05     ` Olaf Hering
2011-07-27 14:38       ` Konrad Rzeszutek Wilk
2011-07-26 11:52 ` [PATCH 6/6] xen kexec: reset device state to Initializing " Olaf Hering
2011-07-26 14:27   ` Konrad Rzeszutek Wilk
2011-07-27 11:22   ` Stefano Stabellini
2011-07-27 12:14     ` Olaf Hering
2011-07-27 13:14       ` Stefano Stabellini
  -- strict thread matches above, loose matches on Subject: below --
2011-07-27 23:13 [PATCH 2/6] xen/hvm kexec: unregister shutdown+sysrq watches " Jan Beulich
2011-07-28  5:25 ` Olaf Hering
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

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.