All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xensource.com, keir.fraser@eu.citrix.com
Cc: konrad.wilk@oracle.com
Subject: [PATCH 1 of 3] If Xen backend modules are not loaded, load them before starting Xend
Date: Tue, 22 Dec 2009 16:48:56 -0000	[thread overview]
Message-ID: <7bd805a543da685a3dba.1261500536@phenom.dumpdata.com> (raw)
In-Reply-To: <patchbomb.1261500535@phenom.dumpdata.com>

# HG changeset patch
# User konrad@phenom.dumpdata.com
# 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
 	;;

  reply	other threads:[~2009-12-22 16:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-22 16:48 [PATCH 0 of 3] Patches when Linux Xen drivers are modules Konrad Rzeszutek Wilk
2009-12-22 16:48 ` Konrad Rzeszutek Wilk [this message]
2009-12-22 19:41   ` [PATCH 1 of 3] If Xen backend modules are not loaded, load them before starting Xend Ian Campbell
2009-12-22 19:57     ` Konrad Rzeszutek Wilk
2009-12-22 21:59       ` Ian Campbell
2009-12-22 16:48 ` [PATCH 2 of 3] [xen-detect] Return 0 if no Xen detected; 1 if running in PV context; and 2 if in HVM context Konrad Rzeszutek Wilk
2009-12-22 20:16   ` Keir Fraser
2009-12-22 16:48 ` [PATCH 3 of 3] [xen-detect] Add arguments to print out only outputs we are interested in Konrad Rzeszutek Wilk
2009-12-22 20:21   ` Keir Fraser
2009-12-22 20:26     ` Konrad Rzeszutek Wilk
2009-12-22 20:38       ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7bd805a543da685a3dba.1261500536@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.