[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] mapped memory delay?

> 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 

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 


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.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.