From: Ian Campbell Subject: Re: Early ACPI events prevent subsequent ACPI functionality on xen 4.3 + HVM domU Date: Wed, 22 May 2013 10:57:38 +0100 Message-ID: <1369216658.21246.164.camel@zakaz.uk.xensource.com> References: <71194FD00ABB7415DD6106AA@nimrod.local> <1369146037.21246.89.camel@zakaz.uk.xensource.com> <519B85FA.6060809@eu.citrix.com> <86B77960F7BEC777A3C5C339@Ximines.local> <519B947D.8030607@eu.citrix.com> <519B9801.3080901@eu.citrix.com> <20130521164531.GE3669@phenom.dumpdata.com> <6D7B8289F0F8A65C8C2A25C7@Ximines.local> <20130521193344.GB6231@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130521193344.GB6231@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Dave Scott , George Dunlap , xen-devel@lists.xen.org, Paul Durrant , Stefano Stabellini , Alex Bligh , Anthony Perard , Diana Crisan List-Id: xen-devel@lists.xenproject.org > diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c > index 412b96c..34f967f 100644 > --- a/drivers/xen/manage.c > +++ b/drivers/xen/manage.c > @@ -194,7 +194,6 @@ static void do_reboot(void) > shutting_down = SHUTDOWN_POWEROFF; /* ? */ > ctrl_alt_del(); > } > - > static void shutdown_handler(struct xenbus_watch *watch, > const char **vec, unsigned int len) > { > @@ -252,6 +251,10 @@ static void shutdown_handler(struct xenbus_watch *watch, > kfree(str); > } > > +static void check_shutdown_handler(void) > +{ > + shutdown_handler(NULL, NULL, 0); > +} > #ifdef CONFIG_MAGIC_SYSRQ > static void sysrq_handler(struct xenbus_watch *watch, const char **vec, > unsigned int len) > @@ -310,7 +313,7 @@ static int setup_shutdown_watcher(void) > return err; > } > #endif > - > + check_shutdown_handler(); If this is necessary then there is a bug in the kernel's watch handling, for which this is just a workaround, since the call to register_xenbus_watch should have triggered an initial watch.