[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.