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

Re: [Xen-devel] about grant table



On Tue, 2008-03-04 at 14:20 +0800, ää wrote: 
> Hi All,
> I want to know how the frame number get populated ? It seems the
> active entry's frame is the key point to grant table's functionality .
> I just find it is updated from share entry's , but how about share
> entry's ? Thank you

Well, the shared table is shared by the the granting guest OS and Xen.
Data from the shared entry is copied to an active entry (private to Xen)
as soon as grantees make use of an entry therein.

So, e.g.
1. domU writes a shared entry at index <gref>
2. communicates gref to dom0
3. dom0 maps the frame (by ref) -> xen activates the entry
4. dom0 releases the frame -> xen releases the entry
5. domU may reuse the granted frame

Xen updates the status information in the shared entry on 3. and 4., so
the granter can inquire whether the granted frame remains in use. Note
that it can revoke the grant at any time, disallowing mappings or
transfers, but it cannot enforce immediate release of mapped frames on
the grantees side.

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®.