]> git.baikalelectronics.ru Git - kernel.git/commit
xen: do not set xenstored_ready before xenbus_probe on hvm
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 4 Oct 2010 15:10:06 +0000 (16:10 +0100)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 5 Oct 2010 12:37:28 +0000 (13:37 +0100)
commit5de8056cf7345fd13f519610797448ad5b0097fa
tree99063a2381f600fcde0c464690893449dcabb1e8
parent8258f8052bff5ae0035509193ca8bb7295e2206c
xen: do not set xenstored_ready before xenbus_probe on hvm

Register_xenstore_notifier should guarantee that the caller gets
notified even if xenstore is already up.
Therefore we revert "do not notify callers from
register_xenstore_notifier" and set xenstored_read at the right time for
PV on HVM guests too.
In fact in case of PV on HVM guests xenstored is ready only after the
platform pci driver has completed the initialization, so do not set
xenstored_ready before the call to xenbus_probe().

This patch fixes a shutdown_event watcher registration bug that causes
"xm shutdown" not to work properly.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
drivers/xen/xenbus/xenbus_probe.c