From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gorm Hansen Subject: Re: mapped memory delay? Date: Fri, 18 Feb 2005 18:06:14 -0800 Message-ID: <42169F16.4060007@diku.dk> References: <42169A88.90505@diku.dk> <200502190146.22278.maw48@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: <200502190146.22278.maw48@cl.cam.ac.uk> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Mark Williamson Cc: xen-devel@lists.sourceforge.net, Xin Zhao List-Id: xen-devel@lists.xenproject.org Mark Williamson wrote: > 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). Hmm will this be any different if the guy I wish to share this with in dom0 is a userspace process? Can I use /dev/evtchn for that, or do I have to cook my own device node for this? thanks, Jacob ------------------------------------------------------- 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