xen: re-introduce support for grant v2 interface
authorJuergen Gross <jgross@suse.com>
Thu, 2 Nov 2017 09:19:17 +0000 (10:19 +0100)
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>
Mon, 6 Nov 2017 20:50:17 +0000 (15:50 -0500)
commitb988b8ff072ab04abd62d10d3fe44ec544be8a7d
tree866039351dd6e41782c3fea7c5092e6cb95fc157
parentec4001c3f29ebb3d4147aaec7be9c687ddadb7c8
xen: re-introduce support for grant v2 interface

The grant v2 support was removed from the kernel with
commit 438b33c7145ca8a5131a30c36d8f59bce119a19a ("xen/grant-table:
remove support for V2 tables") as the higher memory footprint of v2
grants resulted in less grants being possible for a kernel compared
to the v1 grant interface.

As machines with more than 16TB of memory are expected to be more
common in the near future support of grant v2 is mandatory in order
to be able to run a Xen pv domain at any memory location.

So re-add grant v2 support basically by reverting above commit.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
arch/arm/xen/grant-table.c
arch/x86/xen/grant-table.c
drivers/xen/grant-table.c
include/xen/grant_table.h