summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2017-11-02 12:19:17 +0300
committerBoris Ostrovsky <boris.ostrovsky@oracle.com>2017-11-06 23:50:17 +0300
commitb988b8ff072ab04abd62d10d3fe44ec544be8a7d (patch)
tree866039351dd6e41782c3fea7c5092e6cb95fc157 /arch/arm
parentec4001c3f29ebb3d4147aaec7be9c687ddadb7c8 (diff)
downloadlinux-b988b8ff072ab04abd62d10d3fe44ec544be8a7d.tar.xz
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/xen/grant-table.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/xen/grant-table.c b/arch/arm/xen/grant-table.c
index e43791829ace..91cf08ba1e95 100644
--- a/arch/arm/xen/grant-table.c
+++ b/arch/arm/xen/grant-table.c
@@ -45,7 +45,14 @@ void arch_gnttab_unmap(void *shared, unsigned long nr_gframes)
return;
}
-int arch_gnttab_init(unsigned long nr_shared)
+int arch_gnttab_map_status(uint64_t *frames, unsigned long nr_gframes,
+ unsigned long max_nr_gframes,
+ grant_status_t **__shared)
+{
+ return -ENOSYS;
+}
+
+int arch_gnttab_init(unsigned long nr_shared, unsigned long nr_status)
{
return 0;
}