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

Re: [Xen-devel] Passing a grant reference to another domain!



On Tue, 2008-08-19 at 03:27 +0800, Jayaraman, Bhaskar wrote:
> Hi can anyone point me to the code which passes grant reference between 
> domains?


>  In Mini-OS it doesn't seem to be used and I'm a little clueless where to 
> look for passing of reference.
> I am aware of the way a grant table is mapped, how to use the ring buffer 
> once you map the shared memory page 

> into your domain using the reference and the domain id, and how to read and 
> write into the xenstored database.

>  However, I'm struggling to understand how we pass the grant reference to a 
> particular domain once 

> you share a page after setting necessary access permissions on the page.

XenStore's typically used for bootstrapping shared memory. For generic
I/O rings, it's sufficient to set up sharing of the ring itself. In that
case, a frontend allocates the shared page and puts that reference into
an xs location watched by the backend.

Beyond that, further references would be typically be sent as messages,
but when and how many clearly depends on the application and protocol.
See e.g. the sector segment descriptors in
xen/include/public/io/blkif.h. Similarly for io/netif.h, but blkif is
simpler.

HTH,
Daniel

-- 
Daniel Stodden
LRR     -      Lehrstuhl fÃr Rechnertechnik und Rechnerorganisation
Institut fÃr Informatik der TU MÃnchen             D-85748 Garching
http://www.lrr.in.tum.de/~stodden         mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33  3D80 457E 82AE B0D8 735B



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


 


Rackspace

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