From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: Can Xen VMM or dom0 see the console input to certain domU? Date: Tue, 29 Mar 2005 16:07:38 -0600 Message-ID: <4249D1AA.2050107@us.ibm.com> References: <4249CB3B.301@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xin Zhao Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Xin Zhao wrote: >Thanks a lot! Your answer exactly addressed my question. :) Can you point >out the exact place that forwards user input to DomU via TCP socket in >Xend? I might want to deploy a module in Dom0 to inspect the user inputs >(both keyboard and mouse) to DomU. > > tools/python/xen/xend/server/console.py Where you hook things depends on your app. produceRequests() is probably a good place to start. Regards, Anthony Liguori >cheers, >-x > > >On Tue, 29 Mar 2005, Anthony Liguori wrote: > > > >>Xin Zhao wrote: >> >> >> >>>Also, looks like the network traffic is bridged at dom0, does that mean >>>dom0 can see all the network traffic to all domU? >>> >>> >>> >>> >>I'm not sure I fully understand your questions. >> >>dom0 feeds each domU's console input. The current source of that input >>is a TCP socket via Xend. >> >>All network traffic is funnelled through the network device's backend >>which currently lives in dom0. >> >> >> >>>If the answers to the two questions above are "yes", can someone point me >>>to the right place in source codes that bridge user terminal inputs and >>>network traffic? >>> >>> >>> >>> >>It depends on what you're trying to do. If you want to do some sort of >>traffic shaping or routing the normal Linux hooks should work in dom0. >> >>If you want to trap console input, you're probably going to be looking >>in Xend. >> >>Regards, >> >> >> >>>Many thanks! >>> >>>-x >>> >>>_______________________________________________ >>>Xen-devel mailing list >>>Xen-devel@lists.xensource.com >>>http://lists.xensource.com/xen-devel >>> >>> >>> >>> >>> > > >