From 65ae4fc8cde5c5fc667436fe33f0273bcef39951 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 31 Oct 2006 09:54:49 +0000 Subject: [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 (Checkin comments by Steven Smith ) --- unmodified_drivers/linux-2.6/Makefile | 1 + unmodified_drivers/linux-2.6/mkbuildtree | 1 + unmodified_drivers/linux-2.6/util/Kbuild | 3 +++ 3 files changed, 5 insertions(+) mode change 100644 => 100755 unmodified_drivers/linux-2.6/mkbuildtree create mode 100644 unmodified_drivers/linux-2.6/util/Kbuild (limited to 'unmodified_drivers') 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 old mode 100644 new mode 100755 index ce0a142447..5b6b8643ee --- 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 -- cgit v1.2.3