From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH 3/6] xen/hvm kexec: unregister memory/target watch in xen-balloon.c Date: Tue, 26 Jul 2011 10:18:28 -0400 Message-ID: <20110726141828.GE5994@dumpdata.com> References: <20110726115209.655568638@aepfle.de> <20110726115210.611283619@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20110726115210.611283619@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Jul 26, 2011 at 01:52:12PM +0200, Olaf Hering wrote: > Unregister the memory/target watch during kexec. The watche can not be watche? watcher I think? > re-registered in the kexec kernel because it is still seen as busy by > xenstore. > > Signed-off-by: Olaf Hering > > --- > drivers/xen/xen-balloon.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > Index: linux-3.0/drivers/xen/xen-balloon.c > =================================================================== > --- linux-3.0.orig/drivers/xen/xen-balloon.c > +++ linux-3.0/drivers/xen/xen-balloon.c > @@ -34,6 +34,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -91,6 +92,15 @@ static struct notifier_block xenstore_no > .notifier_call = balloon_init_watcher, > }; > > +static void xen_balloon_shutdown_watcher(void) > +{ > + unregister_xenbus_watch(&target_watch); > +} > + > +static struct syscore_ops xen_balloon_watcher_syscore_ops = { > + .shutdown = xen_balloon_shutdown_watcher, > +}; > + > static int __init balloon_init(void) > { > if (!xen_domain()) > @@ -100,6 +110,7 @@ static int __init balloon_init(void) > > register_balloon(&balloon_sysdev); > register_xenstore_notifier(&xenstore_notifier); > + register_syscore_ops(&xen_balloon_watcher_syscore_ops); > > return 0; > } > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel