From: "Jan Beulich" Subject: [PATCH] x86: use alloc_domheap_page() consistently in dom0 building Date: Tue, 27 Jan 2009 11:12:43 +0000 Message-ID: <497EFA3B.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Signed-off-by: Jan Beulich --- 2009-01-27.orig/xen/arch/x86/domain_build.c 2009-01-26 09:39:13.0000000= 00 +0100 +++ 2009-01-27/xen/arch/x86/domain_build.c 2009-01-27 09:48:36.0000000= 00 +0100 @@ -781,7 +781,7 @@ int __init construct_dom0( l4tab =3D l4start + l4_table_offset(va); if ( !l4e_get_intpte(*l4tab) ) { - page =3D alloc_domheap_pages(d, 0, 0); + page =3D alloc_domheap_page(d, 0); if ( !page ) break; /* No mapping, PGC_allocated + page-table page. */ @@ -808,7 +808,7 @@ int __init construct_dom0( va +=3D 1UL << L3_PAGETABLE_SHIFT; continue; } - if ( (page =3D alloc_domheap_pages(d, 0, 0)) =3D=3D NULL = ) + if ( (page =3D alloc_domheap_page(d, 0)) =3D=3D NULL ) break; else { @@ -836,7 +836,7 @@ int __init construct_dom0( va +=3D 1UL << L2_PAGETABLE_SHIFT; continue; } - if ( (page =3D alloc_domheap_pages(d, 0, 0)) =3D=3D NULL = ) + if ( (page =3D alloc_domheap_page(d, 0)) =3D=3D NULL ) break; else { @@ -851,7 +851,7 @@ int __init construct_dom0( l1tab =3D page_to_virt(l2e_get_page(*l2tab)); l1tab +=3D l1_table_offset(va); BUG_ON(l1e_get_intpte(*l1tab)); - page =3D alloc_domheap_pages(d, 0, 0); + page =3D alloc_domheap_page(d, 0); if ( !page ) break; *l1tab =3D l1e_from_page(page, L1_PROT|_PAGE_DIRTY);