diff options
author | Juergen Gross <jgross@suse.com> | 2017-07-28 12:23:12 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2017-08-11 15:50:21 +0200 |
commit | c138d81163d82db044dcaf1141395713f03bf0bf (patch) | |
tree | 281e040d7a5356799293187c930ec14ac12fc418 /arch/x86/mm/init.c | |
parent | e91b2b1194335ca83d8a40fa4e0efd480bf2babe (diff) | |
download | linux-c138d81163d82db044dcaf1141395713f03bf0bf.tar.bz2 |
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>
Diffstat (limited to 'arch/x86/mm/init.c')
-rw-r--r-- | arch/x86/mm/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 673541eb3b3f..bf3f1065d6ad 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -18,6 +18,7 @@ #include <asm/dma.h> /* for MAX_DMA_PFN */ #include <asm/microcode.h> #include <asm/kaslr.h> +#include <asm/hypervisor.h> /* * We need to define the tracepoints somewhere, and tlb.c @@ -636,6 +637,8 @@ void __init init_mem_mapping(void) load_cr3(swapper_pg_dir); __flush_tlb_all(); + hypervisor_init_mem_mapping(); + early_memtest(0, max_pfn_mapped << PAGE_SHIFT); } |