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)
commitc0202eeb9687e8b92e86aa928c01d4482920440c
tree866039351dd6e41782c3fea7c5092e6cb95fc157
parent9eae677a7962e76b737dacfe81c865a072419662
xen: re-introduce support for grant v2 interface

The grant v2 support was removed from the kernel with
commit 9509b729f255073255f29e2c84d377d71f54c977 ("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