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

[PATCH] Re: [Xen-devel] dom0 boot failure with 256G

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <mukesh.rathor@xxxxxxxxxx>
Subject: [PATCH] Re: [Xen-devel] dom0 boot failure with 256G
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 05 Jun 2008 08:35:38 +0100
Cc: "Kurt C. Hackel" <kurt.hackel@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 05 Jun 2008 00:35:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <48474A61.3050903@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <48474A61.3050903@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>   Trying to figure the hyp out, I notice phys addr is set as:
>
>   d->arch.physaddr_bitsize =
>           fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1
>             + (PAGE_SIZE - 2);
>   which is set to 0x1019, totally baffling me. I'd expect it to be 32,
>   36, or 64????????

Of course it should be PAGE_SHIFT in here! c/s 14097 screwed this up
- sorry, my fault.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: 2008-05-08/xen/arch/x86/domain.c
===================================================================
--- 2008-05-08.orig/xen/arch/x86/domain.c       2008-05-09 12:19:01.000000000 
+0200
+++ 2008-05-08/xen/arch/x86/domain.c    2008-06-05 09:31:30.000000000 +0200
@@ -353,7 +353,7 @@ int switch_compat(struct domain *d)
 
     d->arch.physaddr_bitsize =
         fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1
-        + (PAGE_SIZE - 2);
+        + (PAGE_SHIFT - 2);
 
     return 0;
 
Index: 2008-05-08/xen/arch/x86/domain_build.c
===================================================================
--- 2008-05-08.orig/xen/arch/x86/domain_build.c 2008-06-04 08:26:22.000000000 
+0200
+++ 2008-05-08/xen/arch/x86/domain_build.c      2008-06-05 09:31:36.000000000 
+0200
@@ -366,7 +366,7 @@ int __init construct_dom0(
     if ( is_pv_32on64_domain(d) )
         d->arch.physaddr_bitsize =
             fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1
-            + (PAGE_SIZE - 2);
+            + (PAGE_SHIFT - 2);
 #endif
 
     /*




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