[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] does anyone know how to communicate between domUs on xen?



AFAIK there is no product-ready solution for 'socket like' communication between domains. For user-level and low-insensitivity exchange you can use xenstore (f.e. squeezed and xapi use xenstore in ... kinda RPC-way), libxc supports subscription for key changes, so it can be relatively fast.

For faster exchange only normal network exists.  In my experiments two domains in on same host can show about 5-8Gb/s, which is not much lower causal lo connectivity within domain. AFAIK xen networks drivers are heavily optimized for case of 'same host' connectivity and skip many cpu-consuming operations (like CRC calculation) during 'host-local' communications.

On 21.02.2012 09:19, summerxyt wrote:
Hi,
    I'm a new users of xen and have two questions.
    The first one is that I'm looking for methods about inter-domain communication for xen. I know besides network, VMs on the same physical machine can exchange information by event channel and grant table. But are these two ways working in kernel mode as part of drivers, or can I directly use them just like network socket in user mode?  I've tried to google it but only got something I can't fully understand.
    The second questions is I want to do some extra jobs (like check tcp/ip header and change some bits) to packages in the virtual network of xen. As all domUs' packages are passing the back driver of dom0, I want to put this extra action to network back driver of dom0. But I'm not sure which part of the source code has the function of receiving packages from front driver. I think it may be function  xen_netbk_tx_action.
     I'll be very appreciated if someone knows the answer. Thanks!
 

summerxyt


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.