From: Christopher Clark Subject: Re: Re: new gnttab_end_foreign_access? Date: Thu, 3 Nov 2005 22:55:21 +0000 Message-ID: References: <5d7aca950511022036q7b710539gff3b5bc2c8861b23@mail.gmail.com> <5d7aca950511022051g311a8411o4d8e5d383385aee0@mail.gmail.com> <5d7aca950511022111k1c1599f8p70e7c983c9a61eee@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0807337843==" Return-path: In-Reply-To: <5d7aca950511022111k1c1599f8p70e7c983c9a61eee@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: NAHieu Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============0807337843== Content-Type: multipart/alternative; boundary="----=_Part_30842_26881315.1131058521819" ------=_Part_30842_26881315.1131058521819 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The readonly arg isn't used but was originally intended to allow you to dro= p a grant from allowing readwrite access to just readonly. Haven't had a look at the new interface changes yet. Christopher On 11/3/05, NAHieu wrote: > > On 11/3/05, NAHieu wrote: > > I have one more question:why gnttab_end_foreign_access_ref(grant_ref_t > > ref, int readonly) needs the "readonly" arg? > > > > Is gnttab_end_foreign_access_ref(grant_ref_t ref) not OK? > > > > > I took another look, and it seems we should remove "readonly" arg of > gnttab_end_foreign_access*, as they are not in use. > > So those API should be: > > int gnttab_end_foreign_access_ref(grant_ref_t ref); > void gnttab_end_foreign_access(grant_ref_t ref, unsigned long page); > > > I still have some doubt about the "page" arg, however. > > Thanks > Hieu > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > ------=_Part_30842_26881315.1131058521819 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
The readonly arg isn't used but was originally intended to allow you to drop a grant from allowing readwrite access to just readonly.

Haven't had a look at the new interface changes yet.

Christopher


On 11/3/05, NAHieu <nahieu@gmail.com= > wrote:
On 11/3/05, NAHieu <nahieu@gmail.com= > wrote:
> I have one more question:why gnttab_end_foreign_acc= ess_ref(grant_ref_t
> ref, int readonly) needs the "readonly&quo= t; arg?
>
> Is gnttab_end_foreign_access_ref(grant_ref_t ref) not OK?<= br>>


I took another look, and it seems we should remove "= ;readonly" arg of
gnttab_end_foreign_access*, as they are not in us= e.

So those  API should be:

int gnttab_end_foreign_ac= cess_ref(grant_ref_t ref);
void gnttab_end_foreign_access(grant_ref_t re= f, unsigned long page);


I still have some doubt about the "= page" arg, however.

Thanks
Hieu

_____________________________________________= __
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

------=_Part_30842_26881315.1131058521819-- --===============0807337843== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0807337843==--