From: Olaf Hering Subject: Re: [PATCH 2/2] Load gntdev and evtchn if they're modular. [and 1 more messages] Date: Tue, 30 Aug 2011 20:12:21 +0200 Message-ID: <20110830181221.GB10090@aepfle.de> References: <0e95f2c754bf526a89bb.1313133119@probook.site> <20054.26388.743123.491778@mariner.uk.xensource.com> <20110825152413.GB25643@aepfle.de> <20054.27534.720259.973323@mariner.uk.xensource.com> <20110826091055.GA495@aepfle.de> <4E4F0483.8070007@goop.org> <20061.5070.515745.853827@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20061.5070.515745.853827@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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