Skip to content

Commit f6df72e

Browse files
jsgfIngo Molnar
authored andcommitted
x86: fix early_ioremap pagetable ops
Put appropriate pagetable update hooks in so that paravirt knows what's going on in there. Signed-off-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
1 parent e3ed910 commit f6df72e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/mm/ioremap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <asm/fixmap.h>
1919
#include <asm/pgtable.h>
2020
#include <asm/tlbflush.h>
21+
#include <asm/pgalloc.h>
2122

2223
enum ioremap_mode {
2324
IOR_MODE_UNCACHED,
@@ -326,6 +327,7 @@ void __init early_ioremap_clear(void)
326327

327328
pgd = early_ioremap_pgd(fix_to_virt(FIX_BTMAP_BEGIN));
328329
*pgd = 0;
330+
paravirt_release_pt(__pa(pgd) >> PAGE_SHIFT);
329331
__flush_tlb_all();
330332
}
331333

0 commit comments

Comments
 (0)