[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] arm: allocate top level p2m page for all non-idle domains
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1340724223 -3600 # Node ID d29a911cc8cf816934a462dad0a25462e6049c18 # Parent e08cf97e76f0b8fa8ff68050e6108c97ef7d9af4 arm: allocate top level p2m page for all non-idle domains Not just dom0. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Acked-by: Tim Deegan <tim@xxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r e08cf97e76f0 -r d29a911cc8cf xen/arch/arm/domain.c --- a/xen/arch/arm/domain.c Mon Jun 25 13:41:32 2012 +0200 +++ b/xen/arch/arm/domain.c Tue Jun 26 16:23:43 2012 +0100 @@ -201,6 +201,9 @@ int arch_domain_create(struct domain *d, clear_page(d->shared_info); share_xen_page_with_guest( virt_to_page(d->shared_info), d, XENSHARE_writable); + + if ( (rc = p2m_alloc_table(d)) != 0 ) + goto fail; } d->max_vcpus = 8; diff -r e08cf97e76f0 -r d29a911cc8cf xen/arch/arm/p2m.c --- a/xen/arch/arm/p2m.c Mon Jun 25 13:41:32 2012 +0200 +++ b/xen/arch/arm/p2m.c Tue Jun 26 16:23:43 2012 +0100 @@ -203,7 +203,7 @@ int p2m_alloc_table(struct domain *d) void *p; /* First level P2M is 2 consecutive pages */ - page = alloc_domheap_pages(d, 1, 0); + page = alloc_domheap_pages(NULL, 1, 0); if ( page == NULL ) return -ENOMEM; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |