* mini-os: a event channel experiment
@ 2008-10-29 1:47 Y. D.
2008-10-29 2:12 ` Paul Samon
[not found] ` <200810291117474395854@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: Y. D. @ 2008-10-29 1:47 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 638 bytes --]
Hi all,
In a mini-os domain A, I start a thread allocating an event channel:
err = evtchn_alloc_unbound(remote_domid, experiment_handler, NULL, &port);
and registered a handler. The err value is 0. The thread normally exits.
While in another mini-os domain B, I start a thread binding that event channel:
err = evtchn_bind_interdomain(remote_domid, remote_port, experiment_handler2, NULL, &port);
and send a event:
err = HYPERVISOR_event_channel_op(EVTCHNOP_send, &event); Both err is 0. The thread normally exits.
but in the domain A, the event handler is not called.
What is wrong with it?
Thanks,
shawn
2008-10-29
Y. D.
[-- Attachment #1.2: Type: text/html, Size: 1681 bytes --]
[-- 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] 3+ messages in thread
* Re: mini-os: a event channel experiment
2008-10-29 1:47 mini-os: a event channel experiment Y. D.
@ 2008-10-29 2:12 ` Paul Samon
[not found] ` <200810291117474395854@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Paul Samon @ 2008-10-29 2:12 UTC (permalink / raw)
To: Y. D.; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1020 bytes --]
I think you need an "EVTCHNOP_unmask" invocation for the port in domain A.
-- Paul S.
On Wed, Oct 29, 2008 at 9:47 AM, Y. D. <duyuyang@gmail.com> wrote:
> Hi all,
>
> In a mini-os domain A, I start a thread allocating an event channel:
> err = evtchn_alloc_unbound(remote_domid, experiment_handler, NULL, &port);
> and registered a handler. The err value is 0. The thread normally exits.
>
> While in another mini-os domain B, I start a thread binding that event
> channel:
> err = evtchn_bind_interdomain(remote_domid, remote_port, experiment_handler2, NULL, &port);
>
> and send a event:
> err = HYPERVISOR_event_channel_op(EVTCHNOP_send, &event); Both err is 0.
> The thread normally exits.
>
> but in the domain A, the event handler is not called.
>
> What is wrong with it?
>
> Thanks,
>
> shawn
>
>
> 2008-10-29
> ------------------------------
> Y. D.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
--
[-- Attachment #1.2: Type: text/html, Size: 2129 bytes --]
[-- 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] 3+ messages in thread
* Re: Re: mini-os: a event channel experiment
[not found] ` <200810291117474395854@gmail.com>
@ 2008-10-29 3:23 ` Paul Samon
0 siblings, 0 replies; 3+ messages in thread
From: Paul Samon @ 2008-10-29 3:23 UTC (permalink / raw)
To: Y. D., xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1503 bytes --]
Great. -- Paul S.
On Wed, Oct 29, 2008 at 11:17 AM, Y. D. <duyuyang@gmail.com> wrote:
> It worked. I totally forgot that.
> Thank you very much.
>
> shawn
> ------------------
> Y. D.
> 2008-10-29
>
> -------------------------------------------------------------
> From:Paul Samon
> Date:2008-10-29 10:12:43
> To:Y. D.
> Cc:xen-devel
> Subject:Re: [Xen-devel] mini-os: a event channel experiment
>
> I think you need an "EVTCHNOP_unmask" invocation for the port in domain A.
>
> -- Paul S.
> On Wed, Oct 29, 2008 at 9:47 AM, Y. D. <duyuyang@gmail.com> wrote:
>
> > Hi all,
> >
> > In a mini-os domain A, I start a thread allocating an event channel:
> > err = evtchn_alloc_unbound(remote_domid, experiment_handler, NULL,
> &port);
> > and registered a handler. The err value is 0. The thread normally exits.
> >
> > While in another mini-os domain B, I start a thread binding that event
> > channel:
> > err = evtchn_bind_interdomain(remote_domid, remote_port,
> experiment_handler2, NULL, &port);
> >
> > and send a event:
> > err = HYPERVISOR_event_channel_op(EVTCHNOP_send, &event); Both err is 0.
> > The thread normally exits.
> >
> > but in the domain A, the event handler is not called.
> >
> > What is wrong with it?
> >
> > Thanks,
> >
> > shawn
> >
> >
> > 2008-10-29
> > ------------------------------
> > Y. D.
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
> >
> >
>
[-- Attachment #1.2: Type: text/html, Size: 2233 bytes --]
[-- 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] 3+ messages in thread
end of thread, other threads:[~2008-10-29 3:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-29 1:47 mini-os: a event channel experiment Y. D.
2008-10-29 2:12 ` Paul Samon
[not found] ` <200810291117474395854@gmail.com>
2008-10-29 3:23 ` Paul Samon
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.