* Re: how to make xenbus do .probe?
[not found] <45EDC042.8090003@purdue.edu>
@ 2007-03-06 19:31 ` Ryan Riley
[not found] ` <f8c101b70703061835j4c7572a0g88adaded454dfd5b@mail.gmail.com>
0 siblings, 1 reply; 5+ messages in thread
From: Ryan Riley @ 2007-03-06 19:31 UTC (permalink / raw)
To: xen-devel; +Cc: jeans.wang
Yeah, the wiki page you refer to in a later message is incorrect, but I
think that the major thing wrong with it is the xenstore-write commands.
(At the moment I don't have time to check whether the skeleton driver
code is correct, and I can't remember if I had to tweak it when I went
through what you're going through.)
Here's 4 xenstore-write commands that should get a probe out of the device:
xenstore-write /local/domain/5/device/mydevice/0/state 1
xenstore-write /local/domain/0/backend/mydevice/5/0/frontend-id 5
xenstore-write /local/domain/0/backend/mydevice/5/0/frontend
/local/domain/5/device/mydevice/0
xenstore-write /local/domain/0/backend/mydevice/5/0/state 1
Quick note: That will only work once per boot, because once the driver
is probed with frontend-id 5 the xenbus code seems to be smart enough to
not do it again. If you need to make another probe happen during the
same boot, just increment the 5 all around. I hope this helps.
Thanks
Ryan
Jian Wang <jeans.wang@gmail.com> wrote:
> Hi,
> Can anyone please tell me how to get ".probe" function in "struct
> xenbus_driver" called?
> I want to do one simple test of event channel communication between
> peer modules of
> domU and dom0.
> I wrote one backend and one frontend driver (I tried registered as
> misc/blk/input device) where I put in all my xenbus routines, but
> cannot get .probe called after insmod my module, I have put
> one week's time to try to find the answer, failed.
>
> Thanks a lot!
> -Jian
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* how to make xenbus do .probe?
@ 2007-02-28 23:32 Jian Wang
2007-03-05 18:27 ` Jian Wang
0 siblings, 1 reply; 5+ messages in thread
From: Jian Wang @ 2007-02-28 23:32 UTC (permalink / raw)
To: xen-devel
Hi,
Can anyone please tell me how to get ".probe" function in "struct
xenbus_driver" called?
I want to do one simple test of event channel communication between
peer modules of
domU and dom0.
I wrote one backend and one frontend driver (I tried registered as
misc/blk/input device) where I put in all my xenbus routines, but
cannot get .probe called after insmod my module, I have put
one week's time to try to find the answer, failed.
Thanks a lot!
-Jian
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to make xenbus do .probe?
2007-02-28 23:32 Jian Wang
@ 2007-03-05 18:27 ` Jian Wang
2007-03-05 19:23 ` Jian Wang
0 siblings, 1 reply; 5+ messages in thread
From: Jian Wang @ 2007-03-05 18:27 UTC (permalink / raw)
To: xen-devel
I know it is a naive question. But can anyone please give me one hand on this?
I tried the example of
"http://wiki.xensource.com/xenwiki/XenIntro#head-d210a9b066af7165219af8f0652a12137245a123"
does not work.
Thanks a lot!
-Jian
On 2/28/07, Jian Wang <jeans.wang@gmail.com> wrote:
> Hi,
> Can anyone please tell me how to get ".probe" function in "struct
> xenbus_driver" called?
> I want to do one simple test of event channel communication between
> peer modules of
> domU and dom0.
> I wrote one backend and one frontend driver (I tried registered as
> misc/blk/input device) where I put in all my xenbus routines, but
> cannot get .probe called after insmod my module, I have put
> one week's time to try to find the answer, failed.
>
> Thanks a lot!
> -Jian
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to make xenbus do .probe?
2007-03-05 18:27 ` Jian Wang
@ 2007-03-05 19:23 ` Jian Wang
0 siblings, 0 replies; 5+ messages in thread
From: Jian Wang @ 2007-03-05 19:23 UTC (permalink / raw)
To: xen-devel
In the Xenintro, before "triggering of probe() in a backend driver"
example, it says:
"Note: this example worked in the past, but with the release of xen
3.0 it stopped to work. We are working on fixing it."
Anyone knows whom could I get help from? This example is really important for
beginners like me to start with.
-Jian
On 3/5/07, Jian Wang <jeans.wang@gmail.com> wrote:
> I know it is a naive question. But can anyone please give me one hand on this?
>
> I tried the example of
> "http://wiki.xensource.com/xenwiki/XenIntro#head-d210a9b066af7165219af8f0652a12137245a123"
> does not work.
>
> Thanks a lot!
> -Jian
>
> On 2/28/07, Jian Wang <jeans.wang@gmail.com> wrote:
> > Hi,
> > Can anyone please tell me how to get ".probe" function in "struct
> > xenbus_driver" called?
> > I want to do one simple test of event channel communication between
> > peer modules of
> > domU and dom0.
> > I wrote one backend and one frontend driver (I tried registered as
> > misc/blk/input device) where I put in all my xenbus routines, but
> > cannot get .probe called after insmod my module, I have put
> > one week's time to try to find the answer, failed.
> >
> > Thanks a lot!
> > -Jian
> >
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-07 18:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <45EDC042.8090003@purdue.edu>
2007-03-06 19:31 ` how to make xenbus do .probe? Ryan Riley
[not found] ` <f8c101b70703061835j4c7572a0g88adaded454dfd5b@mail.gmail.com>
2007-03-07 18:03 ` Ryan Riley
2007-02-28 23:32 Jian Wang
2007-03-05 18:27 ` Jian Wang
2007-03-05 19:23 ` Jian Wang
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.