[PATCH 0/4] xen: grant table interface v2 support

From: Juergen Gross
Date: Fri Sep 08 2017 - 12:04:15 EST


In order to support Linux to run as a pv guest on machines with huge
memory (>16TB) the kernel has to support grant table interface v2, as
v1 is limited to 32 bit frame numbers.

This series re-adds that support (it has been removed in 2015) and
restricts usage of v2 to the features of v1 in order to support
migration to hosts which only support v1.

V2 is selected only in case the host has memory frames populated
above the 16TB border.

Juergen Gross (4):
xen: re-introduce support for grant v2 interface
xen: limit grant v2 interface to the v1 functionality
xen: add grant interface version dependent constants to gnttab_ops
xen: select grant interface version

arch/arm/xen/grant-table.c | 9 +-
arch/x86/xen/grant-table.c | 60 +++++++++++-
drivers/xen/grant-table.c | 234 ++++++++++++++++++++++++++++++++++++++++-----
include/xen/grant_table.h | 5 +-
4 files changed, 276 insertions(+), 32 deletions(-)

--
2.12.3