xen: handle external requests for shutdown, reboot and sysrq

The guest domain can be asked to shutdown or reboot itself, or have a
sysrq key injected, via xenbus.  This patch adds a watcher for those
events, and does the appropriate action.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Chris Wright <chrisw@sous-sol.org>
This commit is contained in:
Jeremy Fitzhardinge 2007-07-17 18:37:07 -07:00 committed by Jeremy Fitzhardinge
commit 3e2b8fbeec
2 changed files with 144 additions and 1 deletions