Skip to contentSkip to conversation

xenbus call too early?

DISCUSSION Dan Magenheimer 3 participants 4 messages May 2, 2008 – May 3, 2008

lore
Share & tools
lore
#0 lore raw

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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

Hello,

Quoted 8 lines · 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

#2 lore raw
Quoted 11 lines
Quoted 8 lines · 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.

Quoted 1 line

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

#3 lore raw
Quoted 15 lines
Quoted 10 lines
Quoted 8 lines

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.

Quoted 5 lines
Quoted 1 line

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

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