xen/p2m: An early bootup variant of set_phys_to_machine
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 30 Mar 2012 18:33:14 +0000 (14:33 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 6 Apr 2012 21:03:06 +0000 (17:03 -0400)
commit940713bb2ce3033f468a220094a07250a2f69bdd
tree2bdf0c6eb1a2d530737918544423d56fb0ea4dd8
parentd5096850b47424fb0f1c6a75b8f7184f7169319a
xen/p2m: An early bootup variant of set_phys_to_machine

During early bootup we can't use alloc_page, so to allocate
leaf pages in the P2M we need to use extend_brk. For that
we are utilizing the early_alloc_p2m and early_alloc_p2m_middle
functions to do the job for us. This function follows the
same logic as set_phys_to_machine.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/p2m.c