WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Dom0-DomU communication

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, admin@xxxxxxxxxxx
Subject: RE: [Xen-devel] Dom0-DomU communication
From: Akshay Joglekar <akshayj_18@xxxxxxxxxxx>
Date: Sat, 20 Feb 2010 01:23:26 +0530 (IST)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 19 Feb 2010 11:54:29 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1266609206; bh=Qznu/T+gnb1CPdi6t/gxum021TgwSUw4aLK5g1nfrqE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=mXqilYddXMISgSEEWHkT/U5PYFrKkzOuekwkZyD10fYXKHklhvHrwYejCoMay3Wy8U8mN3KBcr70YzcdoIwUYJd5uUzZClyiwF+kqpaYDWmwkoteD8jRCXujneYE3aIkUPHRjXOSdiApvMIGkR9A4T68I50s9SD+OrT1gb5kvII=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=C6GZBV7bUfm3ePco7WbH7qK2fdhSY6Ejsd6WeatHoMPRLb9sjwbX2gTxJ8NwrHaVVySeu7aOFjFDtIdUytBjrwEFrvUVT6IrZ2sWx1NXd59Gp8yHiAdSyz3DdpDaQ3NHO1W7f4JddvWGXzAw4PeNjV1QLB9zi+J/pEFSovUw97c=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1376b625-56bd-45ca-bfc1-026229e8e5b3@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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.

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

Thanks

Akshay

--- On Fri, 19/2/10, Dan Magenheimer <dan.magenheimer@xxxxxxxxxx> wrote:

From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: RE: [Xen-devel] Dom0-DomU communication
To: admin@xxxxxxxxxxx, "Akshay Joglekar" <akshayj_18@xxxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
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 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 larger files or under heavy system loads, so probably shouldn’t be relied on in a real production environment.  That’s what networks (and iSCSI and SANs and NFS) are designed for.

 

From: David [mailto:admin@xxxxxxxxxxx]
Sent: Friday, February 19, 2010 1:36 AM
To: Akshay Joglekar
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
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 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 same utilities are available in Windows.

 

On 18 February 2010 23:19, Akshay Joglekar <akshayj_18@xxxxxxxxxxx> 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 between dom0 and domU?

Akshay
 

--- On Thu, 18/2/10, David <admin@xxxxxxxxxxx> wrote:


From: David <admin@xxxxxxxxxxx>
Subject: Re: [Xen-devel] Dom0-DomU communication
To: "Akshay Joglekar" <akshayj_18@xxxxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Date: Thursday, 18 February, 2010, 3:51 AM

 

The Xenstore

On 17 February 2010 22:00, Akshay Joglekar <akshayj_18@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 

 

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

 

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

 


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

 



Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel