Re: [PATCH 08/10] x86, xen, mm: fix mapping_pagetable_reserve logic

From: H. Peter Anvin
Date: Tue Oct 09 2012 - 10:15:02 EST


On 10/09/2012 08:22 PM, Stefano Stabellini wrote:
>
> I can give some hints: find_early_table_space allocates more memory than
> needed for pagetable pages, the allocated range is
> pgt_buf_start-pgt_buf_top.
>

This is why I keep telling you that we should *get rid of*
find_early_table_space and instead build the page tables incrementally.
There simply is no sane way to make find_early_table_space or anything
else that requires pre-calculating the page table sizes to work and be
robust.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/