WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: new gnttab_end_foreign_access?

To: NAHieu <nahieu@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: new gnttab_end_foreign_access?
From: Christopher Clark <christopher.clark@xxxxxxxxxxxx>
Date: Thu, 3 Nov 2005 22:55:21 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Nov 2005 22:55:41 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ftNLKLwacNljQDThYcq+CuHzAbEpQcR3nJujAxSGNlP8G6djiKTizizFo7nkZpE4Wj44m2mplKaGsy2idXrbmLTdTBwgiwFHkPF8AEveaGVik8GOLjkjRTIETuW9eznSIyM2tU3C7t8aCgLCzpnxe5OfVnXvdElw1Rwixg5scSQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5d7aca950511022111k1c1599f8p70e7c983c9a61eee@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <5d7aca950511022036q7b710539gff3b5bc2c8861b23@xxxxxxxxxxxxxx> <5d7aca950511022051g311a8411o4d8e5d383385aee0@xxxxxxxxxxxxxx> <5d7aca950511022111k1c1599f8p70e7c983c9a61eee@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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@xxxxxxxxx> wrote:
On 11/3/05, NAHieu <nahieu@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>