|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 1 of 3] If Xen backend modules are not loaded, load t
# HG changeset patch
# User konrad@xxxxxxxxxxxxxxxxxxx
# Date 1261439503 18000
# Node ID 7bd805a543da685a3dba7b8b0c4e3e7052c863b3
# Parent fc27db3a2ddb3f0843841748684547f6e2ed1f02
If Xen backend modules are not loaded, load them before starting Xend.
The privileged domain can now have more Xen drivers be modules.
Lets take advantage of that and load them if they had not been
loaded yet.
diff -r fc27db3a2ddb -r 7bd805a543da tools/hotplug/Linux/init.d/xend
--- a/tools/hotplug/Linux/init.d/xend Mon Dec 21 18:32:22 2009 -0500
+++ b/tools/hotplug/Linux/init.d/xend Mon Dec 21 18:51:43 2009 -0500
@@ -28,6 +28,7 @@
grep ' xenfs$' /proc/filesystems >/dev/null && \
! grep '^xenfs ' /proc/mounts >/dev/null;
then
+ modprobe -q xenfs
mount -t xenfs xenfs /proc/xen
fi
@@ -35,6 +36,14 @@
exit 0
fi
+# Load the proper modules
+function load_modules
+{
+ test -d /sys/module/xen_blkback || modprobe -q xen_blkback
+ test -d /sys/module/xen_netback || modprobe -q xen_netback
+ test -d /sys/module/xen_evtchn || modprobe -q xen_evtchn
+ test -d /sys/module/pciback || modprobe -q xen_pciback
+}
# Wait for Xend to be up
function await_daemons_up
{
@@ -57,6 +66,7 @@
test -z "$XENCONSOLED_TRACE" || export XENCONSOLED_TRACE
[[ "$XENSTORED_TRACE" == @(yes|on|1) ]] && export XENSTORED_TRACE
[[ "$XENBACKENDD_DEBUG" == @(yes|on|1) ]] && export XENBACKENDD_DEBUG
+ load_modules
xend start
await_daemons_up
;;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|