[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Early ACPI events prevent subsequent ACPI functionality on xen 4.3 + HVM domU
> 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. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |