mini-os: a event channel experiment
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
[email protected]
http://lists.xensource.com/xen-devel
I think you need an "EVTCHNOP_unmask" invocation for the port in domain A.
-- Paul S.
Quoted 23 lines · Y. D.
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
Quoted 10 lines
2008-10-29
------------------------------
Y. D._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
--
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Great. -- Paul S.
Quoted 24 lines · Y. D.
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 experimentI think you need an "
EVTCHNOP_unmask" invocation for the port in domain A.-- Paul S.
Quoted 4 lines · Y. D.
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,
Quoted 32 lines
&port);
Quoted 5 lines
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);Quoted 24 lines
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
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel