All of lore.kernel.org
 help / color / mirror / Atom feed
* Xen bus drivers and the probe function
@ 2007-10-02  5:39 Michael Abd-El-Malek
  2007-10-02  5:49 ` Keir Fraser
  2007-10-04 15:50 ` Ryan Riley
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Abd-El-Malek @ 2007-10-02  5:39 UTC (permalink / raw)
  To: xen-devel

Hello,

I'm writing a split driver for XenBus.  My understanding is that this is 
the "Xen way" for inter-domain discovery, bootstrapping the process by 
sharing grants and event channels.

When I look at the block driver, the probe method of the front- and 
back-ends seems to be doing the bulk of the initialization work.  In my 
sample driver, however, my probe function isn't called.  My module gets 
inserted and the initialization function correctly installs the XenBus 
driver.

Can someone please explain when the probe function is supposed to be 
called?  If there's no physical device "backing" the virtual device 
(i.e., virtual block driver is a counterexample), should I be relying on 
the probe method in the first place?

Thanks,
Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xen bus drivers and the probe function
  2007-10-02  5:39 Xen bus drivers and the probe function Michael Abd-El-Malek
@ 2007-10-02  5:49 ` Keir Fraser
  2007-10-04 15:50 ` Ryan Riley
  1 sibling, 0 replies; 3+ messages in thread
From: Keir Fraser @ 2007-10-02  5:49 UTC (permalink / raw)
  To: Michael Abd-El-Malek, xen-devel

Bootstrap needs to be initiated by xend, which writes initial rendezvous
information into xenstore. See DevController.py in xend.

 -- Keir

On 2/10/07 06:39, "Michael Abd-El-Malek" <mabdelmalek@cmu.edu> wrote:

> Hello,
> 
> I'm writing a split driver for XenBus.  My understanding is that this is
> the "Xen way" for inter-domain discovery, bootstrapping the process by
> sharing grants and event channels.
> 
> When I look at the block driver, the probe method of the front- and
> back-ends seems to be doing the bulk of the initialization work.  In my
> sample driver, however, my probe function isn't called.  My module gets
> inserted and the initialization function correctly installs the XenBus
> driver.
> 
> Can someone please explain when the probe function is supposed to be
> called?  If there's no physical device "backing" the virtual device
> (i.e., virtual block driver is a counterexample), should I be relying on
> the probe method in the first place?
> 
> Thanks,
> Mike
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Xen bus drivers and the probe function
  2007-10-02  5:39 Xen bus drivers and the probe function Michael Abd-El-Malek
  2007-10-02  5:49 ` Keir Fraser
@ 2007-10-04 15:50 ` Ryan Riley
  1 sibling, 0 replies; 3+ messages in thread
From: Ryan Riley @ 2007-10-04 15:50 UTC (permalink / raw)
  To: Michael Abd-El-Malek; +Cc: xen-devel

As Keir said, the probe() function gets triggered by the right things
appearing in the XenStore.  The XenIntro wiki has an example of this
in section 23 (Adding a new device and triggering...):
http://wiki.xensource.com/xenwiki/XenIntro

Hopefully that will be helpful for you.

Thanks
Ryan

On 10/2/07, Michael Abd-El-Malek <mabdelmalek@cmu.edu> wrote:
> Hello,
>
> I'm writing a split driver for XenBus.  My understanding is that this is
> the "Xen way" for inter-domain discovery, bootstrapping the process by
> sharing grants and event channels.
>
> When I look at the block driver, the probe method of the front- and
> back-ends seems to be doing the bulk of the initialization work.  In my
> sample driver, however, my probe function isn't called.  My module gets
> inserted and the initialization function correctly installs the XenBus
> driver.
>
> Can someone please explain when the probe function is supposed to be
> called?  If there's no physical device "backing" the virtual device
> (i.e., virtual block driver is a counterexample), should I be relying on
> the probe method in the first place?
>
> Thanks,
> Mike
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-04 15:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02  5:39 Xen bus drivers and the probe function Michael Abd-El-Malek
2007-10-02  5:49 ` Keir Fraser
2007-10-04 15:50 ` Ryan Riley

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.