* xenbus call too early?
@ 2008-05-02 16:13 Dan Magenheimer
2008-05-02 16:41 ` Samuel Thibault
0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2008-05-02 16:13 UTC (permalink / raw)
To: Xen-Devel (E-mail)
[-- Attachment #1: Type: text/plain, Size: 535 bytes --]
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?
Thanks,
Dan
===================================
If Xen could save time in a bottle / then clocks wouldn't virtually skew /
It would save every tick / for VMs that aren't quick /
and Xen then would send them anew
(with apologies to the late great Jim Croce)
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xenbus call too early?
2008-05-02 16:13 xenbus call too early? Dan Magenheimer
@ 2008-05-02 16:41 ` Samuel Thibault
2008-05-02 21:25 ` Dan Magenheimer
0 siblings, 1 reply; 4+ messages in thread
From: Samuel Thibault @ 2008-05-02 16:41 UTC (permalink / raw)
To: Dan Magenheimer; +Cc: Xen-Devel (E-mail)
Hello,
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.
Samuel
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: xenbus call too early?
2008-05-02 16:41 ` Samuel Thibault
@ 2008-05-02 21:25 ` Dan Magenheimer
2008-05-03 17:24 ` Mark Williamson
0 siblings, 1 reply; 4+ messages in thread
From: Dan Magenheimer @ 2008-05-02 21:25 UTC (permalink / raw)
To: Samuel Thibault; +Cc: Xen-Devel (E-mail)
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: xenbus call too early?
2008-05-02 21:25 ` Dan Magenheimer
@ 2008-05-03 17:24 ` Mark Williamson
0 siblings, 0 replies; 4+ messages in thread
From: Mark Williamson @ 2008-05-03 17:24 UTC (permalink / raw)
To: xen-devel, dan.magenheimer@oracle.com; +Cc: Samuel Thibault
> > > 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/)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-05-03 17:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-02 16:13 xenbus call too early? Dan Magenheimer
2008-05-02 16:41 ` Samuel Thibault
2008-05-02 21:25 ` Dan Magenheimer
2008-05-03 17:24 ` Mark Williamson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.