From: Dan Magenheimer Subject: RE: Dom0-DomU communication Date: Fri, 19 Feb 2010 12:20:10 -0800 (PST) Message-ID: <11669f03-cbf8-4c51-8f2f-e445f84fde21@default> References: <1376b625-56bd-45ca-bfc1-026229e8e5b3@default 508129.65539.qm@web94803.mail.in2.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1596103961==" Return-path: In-Reply-To: <508129.65539.qm@web94803.mail.in2.yahoo.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: Akshay Joglekar , admin@dmarkey.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1596103961== Content-Type: multipart/alternative; boundary="__126661081727948039abhmt012" --__126661081727948039abhmt012 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mapping memory pages betwen dom0 and domU can be done with a grant table, w= hich is used heavily for paravirtualized device drivers.=C2=A0 (I=E2=80=99m= fairly ignorant of the details, so maybe someone else will answer if you f= ind that is a good direction to look.)=C2=A0 Doing something like Unix shar= ed memory between domU and domU has been explored by various research proje= cts (XenSocket and google for =E2=80=9Cxen inter domain memory sharing=E2= =80=9D for others) but I don=E2=80=99t think anything (other than grant tab= les) has ever made it upstream into Xen. =C2=A0 From: Akshay Joglekar [mailto:akshayj_18@yahoo.co.in]=20 Sent: Friday, February 19, 2010 12:53 PM To: Dan Magenheimer; admin@dmarkey.com Cc: xen-devel@lists.xensource.com Subject: RE: [Xen-devel] Dom0-DomU communication =C2=A0 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 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.=C2=A0 Note that the domU must have xenstore tools instal= led on it (which is often not installed by default). =C2=A0 Also note that this has likely never been tested with larger files or under= heavy system loads, so probably shouldn=E2=80=99t be relied on in a real p= roduction environment.=C2=A0 That=E2=80=99s what networks (and iSCSI and SA= Ns and NFS) are designed for. =C2=A0 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 =C2=A0 No not really, Go through a network for that. =C2=A0 It is really designed for small amounts of data, usually configuration rela= ted. =C2=A0 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. =C2=A0 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 =C2=A0 --- On Thu, 18/2/10, David wrote: From: David Subject: Re: [Xen-devel] Dom0-DomU communication To: "Akshay Joglekar" Cc: xen-devel@lists.xensource.com Date: Thursday, 18 February, 2010, 3:51 AM =C2=A0 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 =C2=A0 =C2=A0 _____ =C2=A0 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 =C2=A0 =C2=A0 -----Inline Attachment Follows----- =C2=A0 _______________________________________________ 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 =C2=A0 =C2=A0 _____ =C2=A0 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. =C2=A0 =C2=A0 =C2=A0 _____ =C2=A0 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!. --__126661081727948039abhmt012 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Mapping memory pages betwen dom0 and domU can be done with= a grant table, which is used heavily for paravirtualized device drivers.=C2= =A0 (I=E2=80=99m fairly ignorant of the details, so maybe someone else will answer if you find th= at is a good direction to look.)=C2=A0 Doing something like Unix shared memory = between domU and domU has been explored by various research projects (XenSocket and go= ogle for =E2=80=9Cxen inter domain memory sharing=E2=80=9D for others) but I d= on=E2=80=99t think anything (other than grant tables) has ever made it upstream into Xen.<= /p>

 

From: Akshay Jogl= ekar [mailto:akshayj_18@yahoo.co.in]
Sent: Friday, February 19, 2010 12:53 PM
To: Dan Magenheimer; admin@dmarkey.com
Cc: xen-devel@lists.xensource.com
Subject: RE: [Xen-devel] Dom0-DomU communication
=

 

So, from all your inputs I understand that the Xen= Store is the best way for transferring small amounts of data, while network (thr= ough something like sockets) is good for file transfers.

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

Thanks

Akshay

--- On Fri, 19/2/10, Dan Magenheimer <dan.magenheimer@oracle.c= om> 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

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

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

 

Also note that this has likely never been tested with larger files or under = heavy system loads, so probably shouldn=E2=80=99t be relied on in a real prod= uction environment.  That=E2=80=99s what networks (and iSCSI and SANs and= NFS) are designed for.

 

From: David [ma= ilto: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, usually configuration rel= ated.

 

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 same utilities are available in Windows.

 

On 18 February 2010 23:19, Akshay Joglekar <<= span style=3D'color:blue'>akshayj_18@yahoo.co.in> 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 transfe= rs between dom0 and domU?

Akshay
 

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


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= send simple data such as a character string. What is the best way to go = about 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
<= /a>

 

 

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

 


The INTERNET now has a personality. YOURS! See your Yahoo! Homepag= e.

 

 


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

--__126661081727948039abhmt012-- --===============1596103961== 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 --===============1596103961==--