move XENMAPSPACE_grant_table code into grant_table.c
authorJuergen Gross <jgross@suse.com>
Wed, 20 Sep 2017 15:18:23 +0000 (17:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 Sep 2017 15:18:23 +0000 (17:18 +0200)
commit54a98549e03ae8f655b1119276e707a31d5322c3
treeb7a61dfa7c9fb8483acfb08852e73440aabbe666
parent41d1fcb1c9bf7134cd00b3689f311353d4e2f541
move XENMAPSPACE_grant_table code into grant_table.c

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 <jgross@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/mm.c
xen/arch/x86/mm.c
xen/common/grant_table.c
xen/include/asm-arm/grant_table.h
xen/include/asm-x86/grant_table.h
xen/include/xen/grant_table.h