From: "Jan Beulich" Subject: [PATCH] Re: dom0 boot failure with 256G Date: Thu, 05 Jun 2008 08:35:38 +0100 Message-ID: <4847B36A.76E4.0078.0@novell.com> References: <48474A61.3050903@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <48474A61.3050903@oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , mukesh.rathor@oracle.com Cc: "Kurt C. Hackel" , xen-devel List-Id: xen-devel@lists.xenproject.org > Trying to figure the hyp out, I notice phys addr is set as: > > d->arch.physaddr_bitsize =3D > 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 Index: 2008-05-08/xen/arch/x86/domain.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-05-08.orig/xen/arch/x86/domain.c 2008-05-09 12:19:01.0000000= 00 +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) =20 d->arch.physaddr_bitsize =3D fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1 - + (PAGE_SIZE - 2); + + (PAGE_SHIFT - 2); =20 return 0; =20 Index: 2008-05-08/xen/arch/x86/domain_build.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 2008-05-08.orig/xen/arch/x86/domain_build.c 2008-06-04 08:26:22.0000000= 00 +0200 +++ 2008-05-08/xen/arch/x86/domain_build.c 2008-06-05 09:31:36.0000000= 00 +0200 @@ -366,7 +366,7 @@ int __init construct_dom0( if ( is_pv_32on64_domain(d) ) d->arch.physaddr_bitsize =3D fls((1UL << 32) - HYPERVISOR_COMPAT_VIRT_START(d)) - 1 - + (PAGE_SIZE - 2); + + (PAGE_SHIFT - 2); #endif =20 /*