new gnttab_end_foreign_access?
Hi,
In grant-table API, gnttab_end_foreign_access() is used to end the access to grant reference got from gnttab_grant_foreign_access(domid, mfn, readonly)
But the new gnttab_end_foreign_access(ref, page, readonly) (checked in few days ago) required the new "page" arg. I understand that this"page " is actually the arg "mfn" from the above gnttab_grant_foreign_access function(), right?
If that is the case, there is only one ref corresponding to a page, why we need this new arg?
Many thanks.
Hieu
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?
Thanks.
Hieu
Quoted 5 lines · NAHieu
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
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
Quoted 20 lines · NAHieu
Quoted 5 lines · NAHieu
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);
voidgnttab_end_foreign_access(grant_ref_t ref, unsigned long page);I still have some doubt about the "page" arg, however.
Quoted 8 lines
Thanks
Hieu_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel