* evtchn_bind_interdomain() { struct domain *ld= current->domain } but why it is always current->domain ?
@ 2013-06-19 3:17 yandong han
2013-06-19 8:30 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: yandong han @ 2013-06-19 3:17 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 311 bytes --]
hi all, I have a doubt. about event channel of xen,
a piece of code here " evtchn_bind_interdomain() { struct domain *ld=
current->domain }", it is used to bind domain A and domain B
but why it is always current->domain ?
--
----------------------------------------------------------
regards,
yandong
[-- Attachment #1.2: Type: text/html, Size: 493 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: evtchn_bind_interdomain() { struct domain *ld= current->domain } but why it is always current->domain ?
2013-06-19 3:17 evtchn_bind_interdomain() { struct domain *ld= current->domain } but why it is always current->domain ? yandong han
@ 2013-06-19 8:30 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2013-06-19 8:30 UTC (permalink / raw)
To: yandong han; +Cc: xen-devel
On Wed, 2013-06-19 at 11:17 +0800, yandong han wrote:
>
> hi all, I have a doubt. about event channel of xen,
> a piece of code here " evtchn_bind_interdomain() { struct domain
> *ld= current->domain }", it is used to bind domain A and domain
> B
> but why it is always current->domain ?
Which other domain would you expect it to be?
xen/incude/public/event_channel.h says:
* EVTCHNOP_bind_interdomain: Construct an interdomain event channel between
* the calling domain and <remote_dom>. <remote_dom,remote_port> must identify
* a port that is unbound and marked as accepting bindings from the calling
* domain. A fresh port is allocated in the calling domain and returned as
* <local_port>.
The important part being "between the calling domain".
Ian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-19 8:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19 3:17 evtchn_bind_interdomain() { struct domain *ld= current->domain } but why it is always current->domain ? yandong han
2013-06-19 8:30 ` Ian Campbell
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.