From: Akshay Joglekar Subject: RE: Dom0-DomU communication Date: Sat, 20 Feb 2010 01:23:26 +0530 (IST) Message-ID: <508129.65539.qm@web94803.mail.in2.yahoo.com> References: <1376b625-56bd-45ca-bfc1-026229e8e5b3@default> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0448460723==" Return-path: In-Reply-To: <1376b625-56bd-45ca-bfc1-026229e8e5b3@default> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , admin@dmarkey.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0448460723== Content-Type: multipart/alternative; boundary="0-708857737-1266609206=:65539" --0-708857737-1266609206=:65539 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable So, from all your inputs I understand that the XenStore is the best way for= transferring small amounts of data, while network (through something like = sockets) is good for file transfers.=20 I was also wondering if there are is any convenient way of using shared mem= ory (apart from XenStore) for file transfers. Like mapping memory pages fro= m 1 domain to another? Thanks Akshay=20 --- On Fri, 19/2/10, Dan Magenheimer wrote: From: Dan Magenheimer Subject: RE: [Xen-devel] Dom0-DomU communication To: admin@dmarkey.com, "Akshay Joglekar" Cc: xen-devel@lists.xensource.com Date: Friday, 19 February, 2010, 9:33 PM =0A=0A=0A =0A =0A=0A=0A=0A=0A=0A=0A=0AAs an example of small files being pa= ssed through Xenstore, look=0Ain the xen source tree under tools/xenballoon= /xenballoond in the function send_memory_stats(), =0A=0Awhich passes the co= ntents of /proc/meminfo and /proc/vmstat via=0Axenstore from a domU to dom0= .=C2=A0 Note that the domU must have xenstore tools=0Ainstalled on it (whic= h is often not installed by default). =0A=0A =C2=A0 =0A=0AAlso note that th= is has likely never been tested with larger=0Afiles or under heavy system l= oads, so probably shouldn=E2=80=99t be relied on in=0Aa real production env= ironment.=C2=A0 That=E2=80=99s what networks (and iSCSI and SANs=0Aand NFS)= are designed for. =0A=0A =C2=A0 =0A=0A=0A=0A=0A=0A=0A=0AFrom: David=0A[mai= lto:admin@dmarkey.com]=20 =0ASent: Friday, February 19, 2010 1:36 AM =0ATo: Akshay Joglekar =0ACc: xen-devel@lists.xensource.com =0ASubject: Re: [Xen-devel] Dom0-DomU communication =0A=0A=0A=0A=0A=0A =C2= =A0 =0A=0ANo not really, Go through a network for that. =0A=0A=0A=0A =C2=A0= =0A=0A=0A=0A=0A=0AIt is really designed for small amounts of data, usually= =0Aconfiguration related. =0A=0A=0A=0A=0A=0A =C2=A0 =0A=0A=0A=0A=0A=0AIn yo= ur original post you did say "in order to send=0Asimple data such as a char= acter string.", =0A=0A=0A=0A=0A=0Afor this use case I would use the xenstor= e, although its=0Aeasy to read/write to the xenstore in Linux guests, i'm n= ot sure if the same=0Autilities are available in Windows. =0A=0A=0A=0A=0A= =0A =C2=A0 =0A=0A=0A=0AOn 18 February 2010 23:19, Akshay Joglekar wrote: =0A=0A=0A =0A =0A Hi David, =0A =20 =0A Thanks for the reply. Can the XenStore also be used for transferring l= arge=0A amounts of data like a file? If not what can be used for file tran= sfers=0A between dom0 and domU? =0A =20 =0A Akshay =0A =C2=A0 =0A =20 =0A --- On Thu, 18/2/10, David wrote: =0A =20 =0A From: David =0A Subject: Re: [Xen-devel] Dom0-DomU communication =0A To: "Akshay Joglekar" =0A Cc: xen-devel@lists.xensource.com =0A Date: Thursday, 18 February, 2010, 3:51 AM =0A =0A =0A =C2=A0 =0A = =0A The Xenstore =0A =0A On 17 February 2010 22:00, Akshay Joglekar =0A wrote: =0A =0A =0A =0A =0A Hi all, =0A =20 =0A I want to establish communication between dom0 and domU in order to = send=0A simple data such as a character string. What is the best way to = go about=0A this? =0A =20 =0A Any help is greatly appreciated. Thanks in advance. =0A =20 =0A Akshay =0A =0A =0A =0A =0A =0A =C2=A0 =0A =0A =0A =0A= Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!. =0A = =0A =20 =0A _______________________________________________ =0A Xen-devel mailing list =0A Xen-devel@lists.xensource.com =0A http://lists.xensource.com/xen-devel =0A =0A =C2=A0 =0A =0A =C2= =A0 =0A =0A =0A -----Inline Attachment Follows----- =0A =0A =C2=A0 = =0A =0A _______________________________________________ =0A Xen-devel mailing list =0A Xen-devel@lists.xensource.com =0A http://lists.xensource.com/xen-devel =0A =0A =0A =0A =0A=0A=0A=0A= =0A =C2=A0 =0A=0A=0A=0A=0A=0A=0A=0AThe INTERNET now has a personality. YOUR= S! See=0Ayour Yahoo! Homepage. =0A=0A=0A=0A=0A=0A =C2=A0 =0A=0A=0A=0A=0A=0A= =0A=0A =0A=0A=0A=0A=0A Your Mail works best with the New Yahoo Optimiz= ed IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/ --0-708857737-1266609206=:65539 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
So, from all your inputs I understand that th= e XenStore is the best way for transferring small amounts of data, while ne= twork (through something like sockets) is good for file transfers.

= I was also wondering if there are is any convenient way of using shared mem= ory (apart from XenStore) for file transfers. Like mapping memory pages fro= m 1 domain to another?

Thanks

Akshay

--- On Fri, 1= 9/2/10, Dan Magenheimer <dan.magenheimer@oracle.com> wrote= :

From: Dan Magenheimer <dan.magenheimer= @oracle.com>
Subject: RE: [Xen-devel] Dom0-DomU communication
To: = admin@dmarkey.com, "Akshay Joglekar" <akshayj_18@yahoo.co.in>
Cc: = xen-devel@lists.xensource.com
Date: Friday, 19 February, 2010, 9:33 PM

=0A=0A=0A =0A =0A=0A=0A=0A
=0A= =0A

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

=0A=0A

which passes the contents of /proc/meminfo and /proc/vmstat via=0Ax= enstore from a domU to dom0.  Note that the domU must have xenstore to= ols=0Ainstalled on it (which is often not installed by default).

= =0A=0A

&nbs= p;

=0A=0A

Also note that this has likely never been tested with larger=0Afile= s or under heavy system loads, so probably shouldn=E2=80=99t be relied on i= n=0Aa real production environment.  That=E2=80=99s what networks (and = iSCSI and SANs=0Aand NFS) are designed for.

=0A=0A

 

=0A=0A<= div style=3D"border-style: none none none solid; border-color: -moz-use-tex= t-color -moz-use-text-color -moz-use-text-color blue; border-width: medium = medium medium 1.5pt; padding: 0in 0in 0in 4pt;">=0A=0A
=0A=0A
=0A=0A

From: David=0A[mailto:admin@dmarkey.com]
=0ASent: Fri= day, February 19, 2010 1:36 AM
=0ATo: Akshay Joglekar
=0ACc= : xen-devel@lists.xensource.com
=0ASubject: Re: [Xen-devel] D= om0-DomU communication

=0A=0A
=0A=0A
=0A=0A

 

=0A=0A

No not really, Go thro= ugh a network for that.

=0A=0A
=0A=0A

 =

=0A=0A
=0A=0A
=0A=0A

It is really desig= ned for small amounts of data, usually=0Aconfiguration related.

=0A=0A<= /div>=0A=0A
=0A=0A

 

=0A=0A
=0A=0A=
=0A=0A

In your original post you did say "in ord= er to send=0Asimple data such as a character string.",

=0A=0A
=0A= =0A
=0A=0A

for this use case I would use the xens= tore, although its=0Aeasy to read/write to the xenstore in Linux guests, i'= m not sure if the same=0Autilities are available in Windows.

=0A=0A=0A=0A
=0A=0A

&= nbsp;

=0A=0A
=0A=0A

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

=0A=0A=0A =0A = =0A =0A<= /table>=0A=0A
=0A=0A

 

=0A=0A
=0A=0A
=0A=0A
=0A=0A

The INTERNET now has a personality. YOURS! See=0Ayour Yahoo! Homepage.

=0A=0A
=0A=0A=0A=0A

 

=0A=0A=0A=0A=0A=0A=0A=0A = =0A=0A
=0A

Hi D= avid,
=0A
=0A Thanks for the reply. Can the XenStore also be used = for transferring large=0A amounts of data like a file? If not what can be = used for file transfers=0A between dom0 and domU?
=0A
=0A Akshay<= br>=0A  
=0A
=0A --- On Thu, 18/2/10, David <admin@dmarkey.com> w= rote:

=0A


=0A From: David <admin@dmarkey.com>
=0A Subject: = Re: [Xen-devel] Dom0-DomU communication
=0A To: "Akshay Joglekar" <<= a rel=3D"nofollow" ymailto=3D"mailto:akshayj_18@yahoo.co.in" target=3D"_bla= nk" href=3D"/mc/compose?to=3Dakshayj_18@yahoo.co.in">akshayj_18@yahoo.co.in= >
=0A Cc: xen-devel@lists.xensource.com
=0A Date: Thursday, 18 = February, 2010, 3:51 AM

=0A
=0A
=0A

 

=0A
=0A

The Xenstore

=0A
=0A

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

=0A =0A =0A =0A =0A
=0A =0A

Hi all,
=0A
=0A I want to establish c= ommunication between dom0 and domU in order to send=0A simple data such = as a character string. What is the best way to go about=0A this?
=0A =
=0A Any help is greatly appreciated. Thanks in advance.
=0A =
=0A Akshay
=

=0A =0A
=0A
=0A=

 

=0A
=0A
=0A
=0A

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

=0A
=0A


=0A _______________________________= ________________
=0A Xen-devel mailing list
=0A Xen-devel@lists.xensource.com
=0A http://lists.xens= ource.com/xen-devel

=0A
=0A

 <= /p> =0A

=0A

 

=0A
=0A =0A

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

=0A =
=0A

 

= =0A
=0A

____________________________________= ___________
=0A Xen-devel mailing list
=0A Xen-devel@lists.xensource.com
=0A http://lists.xensource.= com/xen-devel

=0A
=0A
=0A

=0A
=0AYour Mail works best with the New Yahoo Optimized IE8. Get it NOW!. --0-708857737-1266609206=:65539-- --===============0448460723== 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 --===============0448460723==--