Skip to contentSkip to conversation

xen: set max_pfn_mapped

PATCH Applied Jeremy Fitzhardinge 2 participants 2 messages Jun 16, 2008 – Jun 20, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 xen: set max_pfn_mapped

We need to set max_pfn_mapped, so do so. Xen guarantees that at least 512k is mapped beyond the end of the kernel image, so we can rely on that being present.

---
arch/x86/xen/enlighten.c | 1 +

1 file changed, 1 insertion(+)

===================================================================

arch/x86/xen/enlighten.c +0 -0
@@ -1266,6 +1266,7 @@
 
	init_pg_tables_start = __pa(pgd);
	init_pg_tables_end = __pa(pgd) + xen_start_info->nr_pt_frames*PAGE_SIZE;

+ max_pfn_mapped = (init_pg_tables_end + 512*1024) >> PAGE_SHIFT;

init_mm.pgd = pgd; /* use the Xen pagetables to start */

Applied
#1 lore raw
Quoted 3 lines · Jeremy Fitzhardinge

We need to set max_pfn_mapped, so do so. Xen guarantees that at least 512k is mapped beyond the end of the kernel image, so we can rely on that being present.

applied all three patches to tip/x86/mm-remove-arch-get-ram-range (on which it has dependency) - thanks Jeremy.

Ingo