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

Re: [Xen-devel] [PATCH 2/2] Load gntdev and evtchn if they're modular. [

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/2] Load gntdev and evtchn if they're modular. [and 1 more messages]
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 30 Aug 2011 20:12:21 +0200
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 30 Aug 2011 11:13:55 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1314727955; l=759; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=9/dO5VdX01Y91gcNqJ/e+UcMRa4=; b=N4aDJTpCZFRV48uuriXBN0+AzBCTnFxeP9xviQp3SNs+yinQbyMJTyDEQ/QuMzoRtDe DjzYZNwRg9aZbcYruKvaDEuSWcHOcWPbmEkjGP5OGNhxLIY9JVnaR31v6kEk/ybsZd+e8 V9HaNoZCVvMhwAeCvAf9BvYTqM42e5bCFn4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20061.5070.515745.853827@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <0e95f2c754bf526a89bb.1313133119@xxxxxxxxxxxx> <20054.26388.743123.491778@xxxxxxxxxxxxxxxxxxxxxxxx> <20110825152413.GB25643@xxxxxxxxx> <20054.27534.720259.973323@xxxxxxxxxxxxxxxxxxxxxxxx> <20110826091055.GA495@xxxxxxxxx> <4E4F0483.8070007@xxxxxxxx> <20061.5070.515745.853827@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21.rev5535 (2011-07-01)
On Tue, Aug 30, Ian Jackson wrote:

> > +# run this script only in dom0:
> > +# no capabilities file in xenlinux kernel
> > +if ! test -f /proc/xen/capabilities ; then
> > +   exit 0
> > +fi
> > +# empty capabilities file in pv_ops kernel
> >  if ! grep -q "control_d" /proc/xen/capabilities ; then
> >     exit 0
> >  fi
> 
> If /proc/xen/capabilities is missing, what does it mean ?

It means a domU with xenlinux PV drivers loaded, in that case the script
has to do nothing.

> kernels really not provide that file ?  Also these two ifs would be
> better combined.

How would that look like? First the file is not there, so grep will
print an error - thats what my patch tries to fix.
Second the file is there and may indicate a dom0.

Olaf

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel