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

Re: [Xen-users] rebased opensuse 2.6.31 xen patches

To: Bruce Edge <bruce.edge@xxxxxxxxx>
Subject: Re: [Xen-users] rebased opensuse 2.6.31 xen patches
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Thu, 15 Oct 2009 09:22:00 +0100
Cc: xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Thu, 15 Oct 2009 01:22:44 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=F4voPnBA16Ndc34l51cXuKUs5FKI003tBywf98LmEXI=; b=e1l2la3ffBtf/6S3kqh4Sq/hT/M4uCvHBMBrqD/WjsiaIwyz0K14VmZl5BTsre22IO Nq6x1x7axkB/NPlJPPjOrySKIphYgJ7bOTBB5kHxCkqO0cJ91vkz0Il8XtEItztgUmpK ncg7M2g3BujAVyjDcGTObHhO+4K3m0j7ek+lA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PLEqB246JG5wTviqg3wpcPbDWERRTKzaPsF3xVseYnAyZg3iqIULMdksYRvcU/FbW9 csGbxAlOzl3R5Kj/SCA+Xb/Kdgw+6dq6ZTWEiBQmqvwMUVL64erLflFGADH9wLU4nBcv dDSwKgAt2jH/+NwDpp6KfnfDBm4fiMk8I+HMk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <45c43ef50910141115i6cbe838as6d7b57ec0138cc0d@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f4527be0910140836n773edebdt111533bc415602a7@xxxxxxxxxxxxxx> <45c43ef50910141115i6cbe838as6d7b57ec0138cc0d@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Oct 14, 2009 at 7:15 PM, Bruce Edge <bruce.edge@xxxxxxxxx> wrote:
> On Wed, Oct 14, 2009 at 8:36 AM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
>> I have rebased the latest opensuse 2.6.31 xen dom0 patches so that
>> they apply to the vanilla kernel cleanly, you can get the patches and
>> a gentoo ebuild from
>> http://code.google.com/p/gentoo-xen-kernel/downloads/list , non gentoo
>> users simply apply them in numeric order.
>>
>> Note that the ebuild also uses genpatches-2.6.31-4 to patch the kernel
>> to 2.6.31.4 so you should update to that revision before applying
>> them.
>>
>> I believe opensuse will be using 2.6.31 as a release kernel so they
>> will be supporting it for some time, I will update the patches
>> whenever they release a new kernel source rpm.
>>
>> This is NOT pv_ops, these are "classic" Xen patches.
>>
>> Andy
>>
>
> It might be .config dependent, but I needed this patch before it would build:
>
> diff -Naur arch/x86/kernel/microcode_core-xen.c.orig
> arch/x86/kernel/microcode_core-xen.c
>
> --- arch/x86/kernel/microcode_core-xen.c.orig   2009-10-14
> 10:45:42.000000000 -0700
> +++ arch/x86/kernel/microcode_core-xen.c        2009-10-14
> 10:44:30.000000000 -0700
> @@ -34,7 +34,7 @@
>  #include <linux/firmware.h>
>  #include <linux/uaccess.h>
>  #include <linux/vmalloc.h>
> -
> +#include <linux/swap.h>
>  #include <asm/microcode.h>
>  #include <asm/processor.h>
>
> The error was:
>
> make -l12 deb-pkg
>
> make KBUILD_SRC=
>  CHK     include/linux/version.h
>  CHK     include/linux/utsrelease.h
>  SYMLINK include/asm -> include/asm-x86
>  CALL    scripts/checksyscalls.sh
>  CHK     include/linux/compile.h
>  CC [M]  arch/x86/kernel/microcode_core.o
> arch/x86/kernel/microcode_core-xen.c: In function ‘microcode_write’:
> arch/x86/kernel/microcode_core-xen.c:100: error: ‘totalram_pages’
> undeclared (first use in this function)
> arch/x86/kernel/microcode_core-xen.c:100: error: (Each undeclared
> identifier is reported only once
> arch/x86/kernel/microcode_core-xen.c:100: error: for each function it
> appears in.)
> make[4]: *** [arch/x86/kernel/microcode_core.o] Error 1
> make[3]: *** [arch/x86/kernel] Error 2
> make[2]: *** [arch/x86] Error 2
> make[1]: *** [deb-pkg] Error 2
> make: *** [deb-pkg] Error 2
>
>
>
> -Bruce
>

Thanks Bruce, I've CC'ed Jan in case he wants to merge this fix into his tree.

Andy

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