From: Dan Magenheimer Subject: RE: Dom0-DomU communication Date: Fri, 19 Feb 2010 08:03:07 -0800 (PST) Message-ID: <1376b625-56bd-45ca-bfc1-026229e8e5b3@default> References: <6894a6471002171421kb342bb8k7d1d6765cf392cd9@mail.gmail.com> <808237.6239.qm@web94809.mail.in2.yahoo.com 6894a6471002190036j29ceae55kab20a1f963b48780@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0708405218==" Return-path: In-Reply-To: <6894a6471002190036j29ceae55kab20a1f963b48780@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: admin@dmarkey.com, Akshay Joglekar Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0708405218== Content-Type: multipart/alternative; boundary="__126659539386941857abhmt012" --__126659539386941857abhmt012 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable As an example of small files being passed through Xenstore, look in the xen= source tree under tools/xenballoon/xenballoond in the function send_memory= _stats(), which passes the contents of /proc/meminfo and /proc/vmstat via xenstore fr= om a domU to dom0. Note that the domU must have xenstore tools installed o= n it (which is often not installed by default). =20 Also note that this has likely never been tested with larger files or under= heavy system loads, so probably shouldn't be relied on in a real productio= n environment. That's what networks (and iSCSI and SANs and NFS) are desig= ned for. =20 From: David [mailto:admin@dmarkey.com]=20 Sent: Friday, February 19, 2010 1:36 AM To: Akshay Joglekar Cc: xen-devel@lists.xensource.com Subject: Re: [Xen-devel] Dom0-DomU communication =20 No not really, Go through a network for that. =20 It is really designed for small amounts of data, usually configuration rela= ted. =20 In your original post you did say "in order to send simple data such as a c= haracter string.", for this use case I would use the xenstore, although its easy to read/write= to the xenstore in Linux guests, i'm not sure if the same utilities are av= ailable in Windows. =20 On 18 February 2010 23:19, Akshay Joglekar wrote: Hi David, Thanks for the reply. Can the XenStore also be used for transferring large = amounts of data like a file? If not what can be used for file transfers bet= ween dom0 and domU? Akshay =20 --- On Thu, 18/2/10, David wrote: From: David Subject: Re: [Xen-devel] Dom0-DomU communication To: "Akshay Joglekar" Cc: HYPERLINK "mailto:xen-devel@lists.xensource.com" \nxen-devel@lists.xens= ource.com Date: Thursday, 18 February, 2010, 3:51 AM =20 The Xenstore On 17 February 2010 22:00, Akshay Joglekar wrote: Hi all, I want to establish communication between dom0 and domU in order to send si= mple data such as a character string. What is the best way to go about this= ? Any help is greatly appreciated. Thanks in advance. Akshay =20 _____ =20 Your Mail works best with the New Yahoo Optimized IE8. HYPERLINK "http://in= .rd.yahoo.com/tagline_ie8_new/*http:/downloads.yahoo.com/in/internetexplore= r/" \nGet it NOW!. _______________________________________________ Xen-devel mailing list HYPERLINK "http://mc/compose?to=3DXen-devel@lists.xensource.com" \nXen-deve= l@lists.xensource.com http://lists.xensource.com/xen-devel =20 =20 -----Inline Attachment Follows----- =20 _______________________________________________ Xen-devel mailing list HYPERLINK "http://mc/compose?to=3DXen-devel@lists.xensource.com" \nXen-deve= l@lists.xensource.com http://lists.xensource.com/xen-devel =20 _____ =20 The INTERNET now has a personality. YOURS! HYPERLINK "http://in.rd.yahoo.co= m/tagline_yyi_1/*http:/in.yahoo.com/" \nSee your Yahoo! Homepage. =20 --__126659539386941857abhmt012 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable

As an example of small files being passed through Xenstore= , look in the xen source tree under tools/xenballoon/xenballoond in the function= send_memory_stats(),

which passes the contents of /proc/meminfo and /proc/vmsta= t via xenstore from a domU to dom0.  Note that the domU must have xenstore= tools installed on it (which is often not installed by default).

 

Also note that this has likely never been tested with larg= er files or under heavy system loads, so probably shouldn’t be relied = on in a real production environment.  That’s what networks (and iSCS= I and SANs and NFS) are designed for.

 

From: David [mailto:admin@dmarkey.com]
Sent: Friday, February 19, 2010 1:36 AM
To: Akshay Joglekar
Cc: xen-devel@lists.xensource.com
Subject: Re: [Xen-devel] Dom0-DomU communication
=

 

No not really, Go through a network for that.

 

It is really designed for small amounts of data, usu= ally configuration related.

 

In your original post you did say "in order to = send simple data such as a character string.",

for this use case I would use the xenstore, although= its easy to read/write to the xenstore in Linux guests, i'm not sure if the s= ame utilities are available in Windows.

 

On 18 February 2010 23:19, Akshay Joglekar <akshayj_18@yahoo.co.in> wro= te:

Hi David,

Thanks for the reply. Can the XenStore also be used for transferring la= rge amounts of data like a file? If not what can be used for file transfers between dom0 and domU?

Akshay
 

--- On Thu, 18/2/10, David <admin@dmarkey.com> wrote:


From: David <= admin@dmarkey.com>
Subject: Re: [Xen-devel] Dom0-DomU communication
To: "Akshay Joglekar" <akshayj_18@yahoo.co.in>
Cc: = xen-devel@lists.xensource.com
Date: Thursday, 18 February, 2010, 3:51 AM

 

The Xenstore

On 17 February 2010 22:00, Akshay Joglekar <akshayj_18@yahoo.co.in> wrote:

Hi= all,

I want to establish communication between dom0 and domU in order to s= end simple data such as a character string. What is the best way to go ab= out this?

Any help is greatly appreciated. Thanks in advance.

Akshay

 


Your Mail works best with the New Yahoo Optimized = IE8. Get it NOW!.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http= ://lists.xensource.com/xen-devel

 

 

-----Inline Attachment Follows-----

 

_______________________________________________ Xen-devel mailing list
Xen-devel@lists.xensource.com
http= ://lists.xensource.com/xen-devel

 


The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

 

--__126659539386941857abhmt012-- --===============0708405218== 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 --===============0708405218==--