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: "Samuel Thibault" <samuel.thibault@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] xenbus call too early?
From: "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx>
Date: Fri, 2 May 2008 15:25:14 -0600
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 02 May 2008 14:26:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080502164136.GT4432@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: Oracle Corporation
Reply-to: "dan.magenheimer@xxxxxxxxxx" <dan.magenheimer@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcismwEjqQOWOXOfRkGDdbD7uMhRHA==
> Dan Magenheimer, le Fri 02 May 2008 10:13:55 -0600, a écrit :
> > 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?

Thanks,
Dan


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

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