xen/grant-table: Move xlated_setup_gnttab_pages to common place
authorShannon Zhao <shannon.zhao@linaro.org>
Thu, 7 Apr 2016 12:03:19 +0000 (20:03 +0800)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:34:42 +0000 (10:34 +0100)
commit243848fc018cb98c2a70c39fe1f93eb266c79835
treec56b6a9be9fe3502cebbef3aea3c4b3425b76aba
parenta4e081b0dd16780d960b1ef86985de40a6729fb5
xen/grant-table: Move xlated_setup_gnttab_pages to common place

Move xlated_setup_gnttab_pages to common place, so it can be reused by
ARM to setup grant table.

Rename it to xen_xlate_map_ballooned_pages.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Tested-by: Julien Grall <julien.grall@arm.com>
arch/x86/xen/grant-table.c
drivers/xen/xlate_mmu.c
include/xen/xen-ops.h