x86: provide an init_mem_mapping hypervisor hook
authorJuergen Gross <jgross@suse.com>
Fri, 28 Jul 2017 10:23:12 +0000 (12:23 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 11 Aug 2017 13:50:21 +0000 (15:50 +0200)
commitc138d81163d82db044dcaf1141395713f03bf0bf
tree281e040d7a5356799293187c930ec14ac12fc418
parente91b2b1194335ca83d8a40fa4e0efd480bf2babe
x86: provide an init_mem_mapping hypervisor hook

Provide a hook in hypervisor_x86 called after setting up initial
memory mapping.

This is needed e.g. by Xen HVM guests to map the hypervisor shared
info page.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/include/asm/hypervisor.h
arch/x86/mm/init.c