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-ia64-devel

[Xen-ia64-devel] [patch] PAGE_ALIGN mpt_table

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [patch] PAGE_ALIGN mpt_table
From: Jes Sorensen <jes@xxxxxxx>
Date: Wed, 20 Sep 2006 17:25:43 +0200
Delivery-date: Wed, 20 Sep 2006 08:28:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060527)
Hi,

This seems like a reasonable thing to do to me, and also means Xen
doesn't MCA on the first attempt to access the mpt_table here.

Cheers,
Jes

Page-align mpt_table - without this patch, Xen MCA's on the first attempt
to try and touch the mpt_table as it was aligned at some crazy address.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>

diff -r 3e4fa8b5b245 xen/arch/ia64/xen/xenmem.c
--- a/xen/arch/ia64/xen/xenmem.c        Tue Sep 12 11:43:22 2006 -0600
+++ b/xen/arch/ia64/xen/xenmem.c        Wed Sep 20 17:14:01 2006 +0200
@@ -184,7 +184,8 @@ void init_virtual_frametable(void)
 
        /* Allocate virtual mpt_table */
        table_size = 0;
-       mpt_table = (unsigned long *)VIRT_FRAME_TABLE_END - max_page;
+       mpt_table = (unsigned long *)
+               PAGE_ALIGN(VIRT_FRAME_TABLE_END - max_page);
        efi_memmap_walk(create_mpttable_page_table, NULL);
 
        printk("virtual machine to physical table: %p size: %lukB\n"
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>