Xin Zhao
2005-Mar-29 21:36 UTC
[Xen-devel] Can Xen VMM or dom0 see the console input to certain domU?
Also, looks like the network traffic is bridged at dom0, does that mean dom0 can see all the network traffic to all domU? 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? Many thanks! -x _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Anthony Liguori
2005-Mar-29 21:40 UTC
Re: [Xen-devel] Can Xen VMM or dom0 see the console input to certain domU?
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 > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Xin Zhao
2005-Mar-29 21:58 UTC
Re: [Xen-devel] Can Xen VMM or dom0 see the console input to certain domU?
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. 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 > > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Anthony Liguori
2005-Mar-29 22:07 UTC
Re: [Xen-devel] Can Xen VMM or dom0 see the console input to certain domU?
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 >>> >>> >>> >>> >>> > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel