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] mapped memory delay?

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] mapped memory delay?
From: Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>
Date: Sat, 19 Feb 2005 01:46:22 +0000
Cc: Jacob Gorm Hansen <jacobg@xxxxxxx>, Xin Zhao <zhaoxin@xxxxxxxxxxxxxx>
Delivery-date: Sat, 19 Feb 2005 01:54:32 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <42169A88.90505@xxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <Pine.LNX.4.58.0502181639240.24170@xxxxxxxxxxxxxxxxxxxxx> <42169A88.90505@xxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> I would like to do the same thing, right now I have shared mem between
> domU and dom0, but no good syncronization. Is there an example somewhere
> of how to do this in the new xcs world? It should be easier now that
> this code has been separated out, right?

If you're sharing memory directly between the two then you don't need to 
involve xcs (other than in the setup phase) since that just does control 
messages.

You might find the ring macros in xen/include/public/ring.h useful.  They make 
it easy to declare ring datatypes (with appropriately sized rings) and 
maintain producer / consumer indexes, with the appropriate memory barriers.

Examples of use are in linux-2.6.10-xen-sparse/drivers/xen/{blk,usb}
{back,front}.  (the net drivers use a slightly different ring format 
instead).

Cheers,
Mark


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel