From: Jingwei Tan Subject: Replay Interrupts Date: Wed, 13 May 2009 11:01:03 +0800 Message-ID: <56891b1d0905122001w22962705o32e9a72bd0a389f7@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1032127580==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1032127580== Content-Type: multipart/alternative; boundary=0016e646544efae68e0469c26bf4 --0016e646544efae68e0469c26bf4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hey guys, What do I want to achieve... I have 3 identical DomU. Typically only the active DomU will receive interrupts from my device (keyboard and mouse). Because all DomU are identical, I might not want to repeat my keyboard and mouse action 3 times. Thus, I want to modify my Xen such that all my DomU will receive the same interrupt when I just do it on one of them. There isn't seems to be any tools that can do that, thus, I know I will have to change the source and build my own version of Xen. What I understand from the source code of Xen regarding Interrupt is... ... When there's an interrupt, do_IRQ_guest() (from /arch/x86/irq.c) will be called... And the interrupt will be sent by calling sent_guest_pirq() (from /common/event_channel.c) that will creates an event channel and sets the pending flag of this event channel by calling evtchn_set_pending() (from /common/event_channel.c). Finally, Xen will notify the domain regarding the interrupt. My question is... 1. How Xen determine which domainU is the one who should be receiving the interrupt? 2. Is it possible to make all my domainU to be the receipent of the interrupt? Am I on the right track? I need not definite answer. Tips and hints are welcome too! I've not made any progress regarding this for weeks. Help needed urgently and is definitely appreciated! -- Regards, Tan --0016e646544efae68e0469c26bf4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey guys,

What do I want to achieve...
I have 3 identical DomU. T= ypically only the active DomU will receive interrupts from my device (keybo= ard and mouse). Because all DomU are identical, I might not want to repeat = my keyboard and mouse action 3 times. Thus, I want to modify my Xen such th= at all my DomU will receive the same interrupt when I just do it on one of = them.
There isn't seems to be any tools that can do that, thus, I know I will= have to change the source and build my own version of Xen.

What I = understand from the source code of Xen regarding Interrupt is... ...
When there's an interrupt, do_IRQ_guest() (from /arch/x86/irq.c) will b= e called... And the interrupt will be sent by calling sent_guest_pirq() (fr= om /common/event_channel.c) that will creates an event channel and sets the= pending flag of this event channel by calling evtchn_set_pending() (from /= common/event_channel.c). Finally, Xen will notify the domain regarding the = interrupt.

My question is...
1. How Xen determine which domainU is the one who = should be receiving the interrupt?
2. Is it possible to make all my doma= inU to be the receipent of the interrupt?

Am I on the right track? I need not definite answer. Tips and hints are welcome too!

I've= not made any progress regarding this for weeks.
Help needed urgently a= nd is definitely appreciated!

--
Regards,
Tan<= br> --0016e646544efae68e0469c26bf4-- --===============1032127580== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1032127580==--