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] [PATCH] cleanup for __start_xen()

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] cleanup for __start_xen()
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 30 Nov 2009 18:52:41 +0000
Cc:
Delivery-date: Mon, 30 Nov 2009 10:53:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19220.1000.264592.235805@xxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acpx5HDG6Okc/DjPT+mHAfpwpHzGdQACdpY8
Thread-topic: [Xen-devel] [PATCH] cleanup for __start_xen()
User-agent: Microsoft-Entourage/12.23.0.091001
On 30/11/2009 17:42, "Ian Jackson" <Ian.Jackson@xxxxxxxxxxxxx> wrote:

> I wrote:
>> Xiao Guangrong writes ("[Xen-devel] [PATCH] cleanup for __start_xen()"):
>>> -        if ( !initial_images_start && (s < e) &&
>>> +        if ( !initial_images_start &&
>> 
>> This is wrong.  s and e are uint64_t so if !(s < e), (e-s) will be
>> large and positive.
> 
> I see this has already been applied (20523).  It should be reverted, I
> think.

None of the if() blocks in the loop will make e<s, as that would imply that
the block had allocated itself a chunk of memory that starts below s. So it
is actually safe to remove the checks, as we know e>=s. But now I look at it
I think I broke the module-relocation block some time ago -- it ends up with
'e' being too large by modules_headroom. :-( Will look into that more
tomorrow...

 -- Keir



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