: p2m_alloc_table: use p2m_alloc_ptp
PATCH 1/1 : p2m_alloc_table: use p2m_alloc_ptp
Hi!
Attached patch makes p2m_alloc_table use of p2m_alloc_ptp(). No functional change.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---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
xen/arch/x86/mm/p2m.c +8 -11
@@ -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));
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel