[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] p2m_alloc_table: use p2m_alloc_ptp
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1272972794 -3600 # Node ID df5fdbdfc4ce1adbc54776887a8fb4187ef58076 # Parent 6d21da6feb59db33eceb3aa6bcb8afac15ac7fd8 p2m_alloc_table: use p2m_alloc_ptp Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- xen/arch/x86/mm/p2m.c | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-) diff -r 6d21da6feb59 -r df5fdbdfc4ce xen/arch/x86/mm/p2m.c --- a/xen/arch/x86/mm/p2m.c Tue May 04 12:29:05 2010 +0100 +++ b/xen/arch/x86/mm/p2m.c Tue May 04 12:33:14 2010 +0100 @@ -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); - 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 = + p2m_top = p2m_alloc_ptp(d, #if CONFIG_PAGING_LEVELS == 4 PGT_l4_page_table #else PGT_l3_page_table #endif - | 1 | PGT_validated; + ); + + if ( p2m_top == NULL ) + { + p2m_unlock(p2m); + return -ENOMEM; + } d->arch.phys_table = pagetable_from_mfn(page_to_mfn(p2m_top)); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |