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 @@
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,
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