From: Christoph Egger Subject: [PATCH]: p2m_alloc_table: use p2m_alloc_ptp Date: Mon, 3 May 2010 14:18:52 +0200 Message-ID: <201005031418.53283.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_t8r3LqDF/ob/eET" Return-path: 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 Cc: Tim Deegan List-Id: xen-devel@lists.xenproject.org --Boundary-00=_t8r3LqDF/ob/eET Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch makes p2m_alloc_table use of p2m_alloc_ptp(). No functional change. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_t8r3LqDF/ob/eET Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_p2m_ptp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_p2m_ptp.diff" diff -r 72119e32ff9a xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Thu Apr 29 15:59:55 2010 +0200 +++ b/xen/arch/x86/mm/p2m.c Mon May 03 13:54:45 2010 +0200 @@ -1814,22 +1814,19 @@ int p2m_alloc_table(struct domain *d, p2m->alloc_page = alloc_page; p2m->free_page = free_page; - p2m_top = p2m->alloc_page(d); + p2m_top = p2m_alloc_ptp(d, +#if CONFIG_PAGING_LEVELS == 4 + PGT_l4_page_table +#else + PGT_l3_page_table +#endif + ); + if ( p2m_top == NULL ) { p2m_unlock(p2m); return -ENOMEM; } - page_list_add_tail(p2m_top, &p2m->pages); - - p2m_top->count_info = 1; - p2m_top->u.inuse.type_info = -#if CONFIG_PAGING_LEVELS == 4 - PGT_l4_page_table -#else - PGT_l3_page_table -#endif - | 1 | PGT_validated; d->arch.phys_table = pagetable_from_mfn(page_to_mfn(p2m_top)); --Boundary-00=_t8r3LqDF/ob/eET Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_t8r3LqDF/ob/eET--