xen/grant-table: Make arch specific macros typesafe
authorJulien Grall <julien.grall@arm.com>
Sat, 26 Jan 2019 16:14:22 +0000 (16:14 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 19 Aug 2019 14:09:19 +0000 (15:09 +0100)
commit2a7a876fededf9c98cdf479e413cae25afc3c0b8
tree5e3fbf949bc1a8f3771d863704201d594e8dceaa
parent87c12c7ec366118f02a6b6fa736fdb3af7a96d2f
xen/grant-table: Make arch specific macros typesafe

This patch rework all the arch specific macros in grant_table.h to use
the typesafe MFN/GFN.

At the same time, some functions are renamed s/gmfn/gfn/ to match the
current naming scheme (see include/mm.h).

No functional changes intended.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/grant_table.c
xen/include/asm-arm/grant_table.h
xen/include/asm-x86/grant_table.h