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

RE: [Xen-ia64-devel] crash while initializing balloon driver

To: "Zhang, Jingke" <jingke.zhang@xxxxxxxxx>
Subject: RE: [Xen-ia64-devel] crash while initializing balloon driver
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Thu, 04 Jan 2007 22:23:01 -0700
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 04 Jan 2007 21:22:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <EFE0C8A50A5D94448E3C7DD762E4FAA2755655@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Organization: HP OSLO R&D
References: <EFE0C8A50A5D94448E3C7DD762E4FAA2755655@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2007-01-05 at 12:59 +0800, Zhang, Jingke wrote:
> Hi Alex,
>     As you said, I use " hg export 13117 | patch -p1 -R " in the
> Cset#13122. Without 13117's patch, dom0 can boot up (Mem=1024M).

  Great.  I think the proper fix is something like this:

diff -r 0f571adbd700 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c        Thu Jan 04 16:25:14 2007 -0700
+++ b/xen/arch/ia64/xen/dom_fw.c        Thu Jan 04 22:15:39 2007 -0700
@@ -549,7 +549,8 @@ complete_dom0_memmap(struct domain *d,
                        flags = ASSIGN_writable;        /* dummy - zero */
                        if (md->attribute & EFI_MEMORY_WP)
                                flags |= ASSIGN_readonly;
-                       if (md->attribute & EFI_MEMORY_UC)
+                       if (md->attribute & EFI_MEMORY_UC &&
+                           !(md->attribute & EFI_MEMORY_WB))
                                flags |= ASSIGN_nocache;
 
                        assign_domain_mach_page(d, start, size, flags);

Could you please test that this fixes the problem?  You'll need to need
to undo reverting 13117 before applying this patch (hg revert).  Thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel