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] xen kernel: build failure

To: Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xen kernel: build failure
From: Keir Fraser <keir.xen@xxxxxxxxx>
Date: Tue, 25 Oct 2011 13:35:27 +0100
Cc:
Delivery-date: Tue, 25 Oct 2011 05:36:10 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=rKOk+vKoJCEJRRSvA9/WgXe8YKP7I6LuXdyjPrD7clA=; b=P8fzsd1ZEHa6LbZ82isZJRMg80SocHLKQLOgZYGsnsI4I3y8rB1zqINY0CDVGN4gMW qV7V0DrwEz0wUrDeDAELLeuIVB5qoHeu31grOx77aNDnPE4UvRXgAn60mHke4FNr1wV0 scLqrjBE2bleZABhtvfEVNTK3lAJ5g57CRBjc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4EA698C8.8030603@xxxxxxx>
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: AcyTEpLjNusr7+qD50SdC48MHdav8Q==
Thread-topic: [Xen-devel] xen kernel: build failure
User-agent: Microsoft-Entourage/12.30.0.110427
On 25/10/2011 12:08, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:

> 
> Hi,
> 
> Compiling the xen kernel fails with:
> 
> xen/arch/x86/domain.c: In function 'alloc_domain_struct'
> xen/arch/x86/domain.c:191: error: negative width in bit-field '<anonymous>'

Problem is that struct domain has grown bigger than a page for some reason,
in your build environment.

I can't reproduce this.

> Removing the line
> 
> BUILD_BUG_ON(sizeof(*d) > PAGE_SIZE);
> 
> makes xen kernel compile again.

But not actually work properly. We only allocate a single page for the
domain struct. If the struct is bigger than a page, you'll get memory
corruption at run time.

 -- Keir

> 
> Christoph
> 



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

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