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] xenbus call too early?

To: xen-devel@xxxxxxxxxxxxxxxxxxx, "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] xenbus call too early?
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sat, 3 May 2008 18:24:36 +0100
Cc: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Delivery-date: Sat, 03 May 2008 10:25:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080502152514828.00000041924@djm-pc>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080502152514828.00000041924@djm-pc>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
> > > I added a xenbus_printk call that causes boot to fail,
> > > I suspect because I am calling it before xenbus is up
> > > and working.
> > >
> > > (Same code works fine if called later.)
> > >
> > > Is there a function that does is_xenbus_ready()?
> > > If not, what's the best way to do the equivalent?
> >
> > There apparently is a xenstored_ready variable.
>
> Thanks, but hmmm..., it doesn't look like this is accessed
> anywhere, nor is it EXPORTed so it wouldn't be accessible
> from a module.
>
> >From more code reading, I'm guessing the right way to do
>
> this is to key off of a xenstore_notifier call which
> can set the local static equivalent of xenstored_ready.
> True?

Sounds sensible based on my rather vague memories of the code.

Cheers,
mark


-- 
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)

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

<Prev in Thread] Current Thread [Next in Thread>