Re: [Xen-devel] [PATCH v6 02/12] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-15 Thread Juergen Gross
On 14/09/17 19:20, Julien Grall wrote: > Hi Juergen, > > On 13/09/17 16:46, Juergen Gross wrote: >> diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c >> index 00ff075bd9..a462ea7905 100644 >> --- a/xen/common/grant_table.c >> +++ b/xen/common/grant_table.c >> @@ -3608,6 +3608,44 @@

Re: [Xen-devel] [PATCH v6 02/12] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-14 Thread Julien Grall
Hi Juergen, On 13/09/17 16:46, Juergen Gross wrote: diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 00ff075bd9..a462ea7905 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -3608,6 +3608,44 @@ int mem_sharing_gref_to_gfn(struct grant_table *gt,

[Xen-devel] [PATCH v6 02/12] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-13 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross