From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Automatic loading of xen-evtchn module in Xen 4.0.0? Date: Sat, 27 Mar 2010 15:18:14 -0700 Message-ID: <4BAE8426.2050703@goop.org> References: <20100327173221.GJ1878@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100327173221.GJ1878@reaktio.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?ISO-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 03/27/2010 10:32 AM, Pasi K=E4rkk=E4inen wrote: > Hello, > > xend automatically mounts /proc/xen, but it doesn't try loading evtchn = or xen-evtchn modules. > Should we add automatic loading of these modules? > > xend doesn't start if xen event channel functionality is missing. > > Fedora Xen rpms do load modules automatically, like this: > > # cat /etc/sysconfig/modules/xen.modules > #!/bin/sh > > test -d /proc/xen || exit 0 > test -f /proc/xen/capabilities || mount -t xenfs xen /= proc/xen > test -f /proc/xen/capabilities || exit 0 > grep -q "control_d" /proc/xen/capabilities || exit 0 > > for module in xen-evtchn evtchn blkbk netbk; do > modprobe ${module}>/dev/null 2>&1 > done > =20 We should be able to make these mount automatically with udev rules, I=20 think, but I'm not sure whether you can do udev rules to mount misc=20 devices (which is what /dev/xen/evtchn is). I think the front/back xenbus and device drivers are still a bit of a=20 mess with regard to modules; I have to admit I tend to just compile them=20 all in. It would be nice to get all that properly sorted out so they=20 can be sensibly modularized and auto-loaded as required. (A good first=20 step would be to systematically work out what compile combinations=20 actually work or fail, hint, hint ;) J