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] [IA64] use domheap for mpt_table.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] use domheap for mpt_table.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Jan 2009 06:40:16 -0800
Delivery-date: Fri, 30 Jan 2009 06:40:13 -0800
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 Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1233281499 -32400
# Node ID 78bea2f2b0e53e0ebd750b97ccfcdd4ea97f04fe
# Parent  4773f40d14f2d75a850fc12e06d2642c09567ddd
[IA64] use domheap for mpt_table.

Now there is no need to allocate pages for mpt_table from xenheap.
So allocate it from domheap.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/xenmem.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 4773f40d14f2 -r 78bea2f2b0e5 xen/arch/ia64/xen/xenmem.c
--- a/xen/arch/ia64/xen/xenmem.c        Fri Jan 30 11:09:27 2009 +0900
+++ b/xen/arch/ia64/xen/xenmem.c        Fri Jan 30 11:11:39 2009 +0900
@@ -49,6 +49,7 @@ paging_init (void)
 {
        unsigned int mpt_order;
        unsigned long mpt_table_size;
+       struct page_info *page;
        unsigned long i;
 
        if (!opt_contig_mem) {
@@ -64,9 +65,11 @@ paging_init (void)
        mpt_table_size = max_page * sizeof(unsigned long);
        mpt_order = get_order(mpt_table_size);
        ASSERT(mpt_order <= MAX_ORDER);
-       if ((mpt_table = alloc_xenheap_pages(mpt_order, 0)) == NULL)
+       page = alloc_domheap_pages(NULL, mpt_order, 0);
+       if (page == NULL)
                panic("Not enough memory to bootstrap Xen.\n");
 
+       mpt_table = page_to_virt(page);
        printk("machine to physical table: 0x%lx mpt_table_size 0x%lx\n"
               "mpt_order %u max_page 0x%lx\n",
               (u64)mpt_table, mpt_table_size, mpt_order, max_page);

_______________________________________________
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] [IA64] use domheap for mpt_table., Xen patchbot-unstable <=