* [PATCH 3/3] xen: set max_pfn_mapped
@ 2008-06-16 21:54 Jeremy Fitzhardinge
2008-06-20 12:51 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Jeremy Fitzhardinge @ 2008-06-16 21:54 UTC (permalink / raw)
To: the arch/x86 maintainers; +Cc: Yinghai Lu, Linux Kernel Mailing List
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.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
---
arch/x86/xen/enlighten.c | 1 +
1 file changed, 1 insertion(+)
===================================================================
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3] xen: set max_pfn_mapped
2008-06-16 21:54 [PATCH 3/3] xen: set max_pfn_mapped Jeremy Fitzhardinge
@ 2008-06-20 12:51 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-06-20 12:51 UTC (permalink / raw)
To: Jeremy Fitzhardinge
Cc: the arch/x86 maintainers, Yinghai Lu, Linux Kernel Mailing List
* Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-20 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16 21:54 [PATCH 3/3] xen: set max_pfn_mapped Jeremy Fitzhardinge
2008-06-20 12:51 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox