Sankaran Sivathanu
2011-Feb-28 00:02 UTC
[Xen-devel] XEN event channel (interdomain communication)
Hi, Could someone please briefly explain the differences between these calls in the XEN event channel framework ? I couldn''t find resources that talk about these calls.. My goal is simple: send an event from Dom0 to DomU and invoke a handler in DomU when an event is received. I wish to do this in kernel level.. I am a bit confused on what calls to use and also about how to allocate port numbers. So it would be really helpful if someone could tell the purpose of these calls.. bind_caller_port_to_irq bind_listening_port_to_irq bind_listening_port_to_irq bind_interdomain_evtchn_to_irq bind_caller_port_to_irqhandler bind_listening_port_to_irqhandler bind_listening_port_to_irqhandler bind_interdomain_evtchn_to_irqhandler Thanks! Sankaran. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2011-Feb-28 09:51 UTC
Re: [Xen-devel] XEN event channel (interdomain communication)
>>> On 28.02.11 at 01:02, Sankaran Sivathanu <ssankaran@gmail.com> wrote: > Hi, > > Could someone please briefly explain the differences between these calls in > the XEN event channel framework ? I couldn''t find resources that talk about > these calls.. > > My goal is simple: send an event from Dom0 to DomU and invoke a handler in > DomU when an event is received. I wish to do this in kernel level.. I am a > bit confused on what calls to use and also about how to allocate port > numbers. So it would be really helpful if someone could tell the purpose of > these calls.. > > bind_caller_port_to_irq > bind_listening_port_to_irq > bind_listening_port_to_irq > bind_interdomain_evtchn_to_irqThese are internal helper functions for the below ones.> bind_caller_port_to_irqhandlerYou have an event channel (local to your domain) at hand and want to use it within the kernel''s normal interrupt handling infrastructure.> bind_listening_port_to_irqhandler > bind_listening_port_to_irqhandlerYou want to obtain an event channel (bound into the kernel''s normal interrupt handling infrastructure) that you can pass to a remote domain for communication.> bind_interdomain_evtchn_to_irqhandlerYou were given an event channel from a remote domain to communicate with it, and want to use it within the kernel''s normal interrupt handling infrastructure. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel