pradeep singh rautela
2007-Apr-18 12:44 UTC
[Xen-devel] Grant Tables between dom0 and domU?
Hi All, The interface manual says - grant tables provide a generic mechanism sharing between domains. Subsequent lines suggest mechanism sharing between only unpriviliged domains. Can grant tables be used for this capability based shared memory communication between dom0 and domUs? Thanks ~psr -- pradeep singh rautela "proud to be a TUXedo, BSDemons you are a little late" - me _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> Subsequent lines suggest mechanism sharing between only unpriviliged > domains. > > Can grant tables be used for this capability based shared memory > communication between dom0 and domUs?Yes, using grant tables is an unprivileged operation so any domain can use it (well, HVM is limited in this respect) - dom0 and domU can share memory if appropriate. This is used by the split Io drivers, etc. Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
pradeep singh rautela
2007-Apr-19 05:19 UTC
Re: [Xen-devel] Grant Tables between dom0 and domU?
On 4/18/07, Mark Williamson <mark.williamson@cl.cam.ac.uk> wrote:> > > Subsequent lines suggest mechanism sharing between only unpriviliged > > domains. > > > > Can grant tables be used for this capability based shared memory > > communication between dom0 and domUs? > > Yes, using grant tables is an unprivileged operation so any domain can use > it > (well, HVM is limited in this respect) - dom0 and domU can share memory if > appropriate.Thank you, that cleared my doubt. ~psr This is used by the split Io drivers, etc.> > Cheers, > Mark > > -- > Dave: Just a question. What use is a unicyle with no seat? And no pedals! > Mark: To answer a question with a question: What use is a skateboard? > Dave: Skateboards have wheels. > Mark: My wheel has a wheel! >-- pradeep singh rautela _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
hi I try to read the granttable code of xen,I am confused about some fields in the struct grant_table,such as struct grant_entry **shared; struct active_grant_entry **active; struct grant_mapping **maptrack; what are the functions for the three structures ? in the grant_table_create() function,each entry of three structures is allocated a page frame,is it right? if it is,when we try to use a grant page ,three pages are needed to be allocated for matadata,or how does it work? I am confused about it could you help me Thanks in advance Mark Williamson 写道:>> Subsequent lines suggest mechanism sharing between only unpriviliged >> domains. >> >> Can grant tables be used for this capability based shared memory >> communication between dom0 and domUs? >> > > Yes, using grant tables is an unprivileged operation so any domain can use it > (well, HVM is limited in this respect) - dom0 and domU can share memory if > appropriate. > > This is used by the split Io drivers, etc. > > Cheers, > Mark > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel