aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers
diff options
context:
space:
mode:
authorSteven Smith <ssmith@xensource.com>2006-10-31 09:54:49 +0000
committerSteven Smith <ssmith@xensource.com>2006-10-31 09:54:49 +0000
commit65ae4fc8cde5c5fc667436fe33f0273bcef39951 (patch)
treebd584b34a386f55f1816355171b3c763d0a86570 /unmodified_drivers
parent87410b08dc103e8a8f9ed28f47c90d14da2140b8 (diff)
downloadxen-65ae4fc8cde5c5fc667436fe33f0273bcef39951.tar.gz
xen-65ae4fc8cde5c5fc667436fe33f0273bcef39951.tar.bz2
xen-65ae4fc8cde5c5fc667436fe33f0273bcef39951.zip
[HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded. This patch creates a new PV-on-HVM module, reboot.ko, which, when loaded, creates control/reboot_module in the store. The tools notice this, and disable the watch which would normally destroy HVM domains which are the target of an xm shutdown command, allowing the reboot module to shut the domain down cleanly. Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com> (Checkin comments by Steven Smith <sos22@cam.ac.uk>)
Diffstat (limited to 'unmodified_drivers')
-rw-r--r--unmodified_drivers/linux-2.6/Makefile1
-rwxr-xr-x[-rw-r--r--]unmodified_drivers/linux-2.6/mkbuildtree1
-rw-r--r--unmodified_drivers/linux-2.6/util/Kbuild3
3 files changed, 5 insertions, 0 deletions
diff --git a/unmodified_drivers/linux-2.6/Makefile b/unmodified_drivers/linux-2.6/Makefile
index 95d558f77b..119016f531 100644
--- a/unmodified_drivers/linux-2.6/Makefile
+++ b/unmodified_drivers/linux-2.6/Makefile
@@ -4,3 +4,4 @@ obj-m += platform-pci/
obj-m += xenbus/
obj-m += blkfront/
obj-m += netfront/
+obj-m += util/
diff --git a/unmodified_drivers/linux-2.6/mkbuildtree b/unmodified_drivers/linux-2.6/mkbuildtree
index ce0a142447..5b6b8643ee 100644..100755
--- a/unmodified_drivers/linux-2.6/mkbuildtree
+++ b/unmodified_drivers/linux-2.6/mkbuildtree
@@ -22,6 +22,7 @@ done
ln -sf ${XL}/drivers/xen/core/gnttab.c platform-pci
ln -sf ${XL}/drivers/xen/core/features.c platform-pci
ln -sf ${XL}/drivers/xen/core/xen_proc.c xenbus
+ln -sf ${XL}/drivers/xen/core/reboot.c util
mkdir -p include
mkdir -p include/xen
diff --git a/unmodified_drivers/linux-2.6/util/Kbuild b/unmodified_drivers/linux-2.6/util/Kbuild
new file mode 100644
index 0000000000..35495d8194
--- /dev/null
+++ b/unmodified_drivers/linux-2.6/util/Kbuild
@@ -0,0 +1,3 @@
+include $(M)/overrides.mk
+
+obj-m := reboot.o