[PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-14 Thread Yinghai Lu
Prepare to put page table on local nodes. Move calling of init_mem_mapping to early_initmem_init. Rework alloc_low_pages to alloc page table in following order: BRK, local node, low range Still load_cr3 one time. Signed-off-by: Yinghai Lu Cc: Pekka Enberg Cc: Jacob Shin Cc: Konrad

[PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-14 Thread Yinghai Lu
Prepare to put page table on local nodes. Move calling of init_mem_mapping to early_initmem_init. Rework alloc_low_pages to alloc page table in following order: BRK, local node, low range Still load_cr3 one time. Signed-off-by: Yinghai Lu ying...@kernel.org Cc: Pekka Enberg

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Tang Chen
On 06/14/2013 06:47 AM, Yinghai Lu wrote: On Thu, Jun 13, 2013 at 11:35 AM, Konrad Rzeszutek Wilk wrote: Tang Chen wrote: From: Yinghai Lu Prepare to put page table on local nodes. Move calling of init_mem_mapping() to early_initmem_init(). Rework alloc_low_pages to allocate page table

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Yinghai Lu
On Thu, Jun 13, 2013 at 11:35 AM, Konrad Rzeszutek Wilk wrote: > Tang Chen wrote: > >>From: Yinghai Lu >> >>Prepare to put page table on local nodes. >> >>Move calling of init_mem_mapping() to early_initmem_init(). >> >>Rework alloc_low_pages to allocate page table in following order: >>

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Konrad Rzeszutek Wilk
Tang Chen wrote: >From: Yinghai Lu > >Prepare to put page table on local nodes. > >Move calling of init_mem_mapping() to early_initmem_init(). > >Rework alloc_low_pages to allocate page table in following order: > BRK, local node, low range > >Still only load_cr3 one time, otherwise we

[Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Tang Chen
From: Yinghai Lu Prepare to put page table on local nodes. Move calling of init_mem_mapping() to early_initmem_init(). Rework alloc_low_pages to allocate page table in following order: BRK, local node, low range Still only load_cr3 one time, otherwise we would break xen 64bit again.

[Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Tang Chen
From: Yinghai Lu ying...@kernel.org Prepare to put page table on local nodes. Move calling of init_mem_mapping() to early_initmem_init(). Rework alloc_low_pages to allocate page table in following order: BRK, local node, low range Still only load_cr3 one time, otherwise we would break

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Konrad Rzeszutek Wilk
Tang Chen tangc...@cn.fujitsu.com wrote: From: Yinghai Lu ying...@kernel.org Prepare to put page table on local nodes. Move calling of init_mem_mapping() to early_initmem_init(). Rework alloc_low_pages to allocate page table in following order: BRK, local node, low range Still only

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Yinghai Lu
On Thu, Jun 13, 2013 at 11:35 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: Tang Chen tangc...@cn.fujitsu.com wrote: From: Yinghai Lu ying...@kernel.org Prepare to put page table on local nodes. Move calling of init_mem_mapping() to early_initmem_init(). Rework alloc_low_pages to

Re: [Part1 PATCH v5 21/22] x86, mm: Make init_mem_mapping be able to be called several times

2013-06-13 Thread Tang Chen
On 06/14/2013 06:47 AM, Yinghai Lu wrote: On Thu, Jun 13, 2013 at 11:35 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: Tang Chentangc...@cn.fujitsu.com wrote: From: Yinghai Luying...@kernel.org Prepare to put page table on local nodes. Move calling of init_mem_mapping() to