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

Re: [Xen-devel] 2.6.27-rc1 >4096MB issue

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] 2.6.27-rc1 >4096MB issue
From: "Carl Jones" <carl.jones@xxxxxxxxx>
Date: Tue, 5 Aug 2008 16:14:28 +1200
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Delivery-date: Mon, 04 Aug 2008 21:14:50 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ZoVrIDzy3x6CGrHm+G9kOyT9OTSjE1B3V9HYvV5zCVs=; b=dVMt4s2FShKYoqMq8XwyVHgTY5hte2DukY+8/jhjNy54Altg6gheP8kTPzHX2bvqqW WTVeitSP7sQPWQ7phQnjYeJA7vzbTPkSgA3xMPz+jXOf4tyDCico/V3Zu2zTMLK6krNO K3mx2KGMBMwtfXgYgznNd5Tqmfp/sFFbmYO1M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Pn+0Suzs6DiAjmwhIpJT/javKTNw6XnlL9Uz+fnliVFWiLkdU+Ei7ZoltxgC3jrB9A peSyfPInOV4MAOi8lFSKn+db8oCKq9rp3dilYLa3hZvN4NgASRVjGwjS3MMN+02+vPrG O/i3K2O2huRXIWOtvh3ebjnFyJBcathMd14sM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4897C3F8.6070704@xxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <df5598920807312025l3a5d9664w2773a133b811ddb4@xxxxxxxxxxxxxx> <48929B85.9030004@xxxxxxxx> <df5598920808012222u402f780dv75301992d789962c@xxxxxxxxxxxxxx> <489484B6.7000003@xxxxxxxx> <df5598920808041800o7a08d026re9daca653f527f40@xxxxxxxxxxxxxx> <4897C3F8.6070704@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, Aug 5, 2008 at 3:07 PM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
> Carl Jones wrote:
>>
>> On Sun, Aug 3, 2008 at 4:00 AM, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
>> wrote:
>>
>>>
>>> Carl Jones wrote:
>>>
>>>>
>>>> http://radium.outervoid.net/~carl/boot.log
>>>> http://radium.outervoid.net/~carl/xmlist.log ('xm list test1 --long'
>>>> output, in case that is helpful)
>>>>
>>>>
>>>
>>> Thanks.  Does this fix it?
>>>
>>> iff -r 25bf2d9a2e4c arch/x86/xen/setup.c
>>> --- a/arch/x86/xen/setup.c      Fri Aug 01 17:12:18 2008 -0700
>>> +++ b/arch/x86/xen/setup.c      Sat Aug 02 09:00:02 2008 -0700
>>> @@ -42,7 +42,7 @@
>>>
>>>       e820.nr_map = 0;
>>>
>>> -       e820_add_region(0, PFN_PHYS(max_pfn), E820_RAM);
>>> +       e820_add_region(0, PFN_PHYS((u64)max_pfn), E820_RAM);
>>>
>>>       /*
>>>        * Even though this is normal, usable memory under Xen, reserve
>>>
>>>
>>>  J
>>>
>>>
>>
>> Yep works nicely now. I tested up to 15GB or so with with that patch
>> applied and CONFIG_XEN_MAX_DOMAIN_MEMORY=32 set:
>>
>> testing:~# cat /proc/meminfo
>> MemTotal:     15769832 kB
>>
>
> Excellent, thanks.  That's 32-bit?  (That's a pretty silly amount of memory
> to give to a 32-bit system, but it's nice to know it works.)
>
> Could you try this patch instead to see if it works?  It's a more general
> fix.
>
> Thanks,
>   J
>
>
> Subject: make PFN_PHYS explicitly return 64-bit result

Hi,

Guest is 32bit. That patch works fine too.

Regards,
Carl

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

<Prev in Thread] Current Thread [Next in Thread>