Commit b6fbb669 authored by Ian Campbell's avatar Ian Campbell Committed by Thomas Gleixner

x86: fix early_ioremap pagetable ops

Some important parts of f6df72e7 got
dropped along the way, reintroduce them.

Only affects paravirt guests.
Signed-off-by: default avatarIan Campbell <ijc@hellion.org.uk>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 551889a6
...@@ -286,7 +286,7 @@ void __init early_ioremap_init(void) ...@@ -286,7 +286,7 @@ void __init early_ioremap_init(void)
pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN)); pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));
memset(bm_pte, 0, sizeof(bm_pte)); memset(bm_pte, 0, sizeof(bm_pte));
set_pmd(pmd, __pmd(__pa(bm_pte) | _PAGE_TABLE)); pmd_populate_kernel(&init_mm, pmd, bm_pte);
/* /*
* The boot-ioremap range spans multiple pmds, for which * The boot-ioremap range spans multiple pmds, for which
...@@ -316,7 +316,7 @@ void __init early_ioremap_clear(void) ...@@ -316,7 +316,7 @@ void __init early_ioremap_clear(void)
pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN)); pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));
pmd_clear(pmd); pmd_clear(pmd);
paravirt_release_pt(__pa(pmd) >> PAGE_SHIFT); paravirt_release_pt(__pa(bm_pte) >> PAGE_SHIFT);
__flush_tlb_all(); __flush_tlb_all();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment