Re: [PATCH v7 06/27] x86, 64bit: early #PF handler set page table

From: Yinghai Lu
Date: Tue Dec 18 2012 - 15:43:51 EST

On Mon, Dec 17, 2012 at 11:15 PM, Yinghai Lu <yinghai@xxxxxxxxxx> wrote:
> -v8: we need to keep that handler alive until init_mem_mapping and don't
> let early_trap_init to trash that early #PF handler.
> So split early_trap_pf_init out and move it down. - Yinghai


looks like moving down early_trap_init would break kgdb.

we could make temporary early pgt cover 1G, and kernel and stop updating later.

please check attached patch.

init_mem_mapping need to be change a little: map BRK at first then switch pgt.



Attachment: hpa_pf_set_page_table_5.patch
Description: Binary data