WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 1 of 3] If Xen backend modules are not loaded, load t

To: xen-devel@xxxxxxxxxxxxxxxxxxx, keir.fraser@xxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 1 of 3] If Xen backend modules are not loaded, load them before starting Xend
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Tue, 22 Dec 2009 16:48:56 -0000
Cc: konrad.wilk@xxxxxxxxxx
Delivery-date: Tue, 22 Dec 2009 11:24:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1261500535@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1261500535@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.3
# 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