WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] p2m_alloc_table: use p2m_alloc_ptp

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] p2m_alloc_table: use p2m_alloc_ptp
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 May 2010 13:20:47 -0700
Delivery-date: Tue, 04 May 2010 13:26:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] p2m_alloc_table: use p2m_alloc_ptp, Xen patchbot-unstable <=