From: tgh Subject: Re: Grant Tables between dom0 and domU? Date: Thu, 21 Jun 2007 16:49:22 +0800 Message-ID: <467A3B92.9060009@ncic.ac.cn> References: <6bc632150704180544x69638645we4203dd723b2d73d@mail.gmail.com> <200704181607.55745.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200704181607.55745.mark.williamson@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mark Williamson Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org hi I try to read the granttable code of xen,I am confused about some fields in the struct grant_table,such as=20 struct grant_entry **shared;=20 struct active_grant_entry **active;=20 struct grant_mapping **maptrack;=20 what are the functions for the three structures ? in the grant_table_create() function,each entry of three structures is al= located a page frame,is it right? if it is,when we try to use a grant page ,three pages are needed to be al= located for matadata,or how does it work? I am confused about it could you help me Thanks in advance Mark Williamson =E5=86=99=E9=81=93: >> 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? >> =20 > > Yes, using grant tables is an unprivileged operation so any domain can = use it=20 > (well, HVM is limited in this respect) - dom0 and domU can share memory= if=20 > appropriate. > > This is used by the split Io drivers, etc. > > Cheers, > Mark > > =20