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: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Subject: Re: [Xen-users] rebased opensuse 2.6.31 xen patches
From: Bruce Edge <bruce.edge@xxxxxxxxx>
Date: Wed, 14 Oct 2009 11:15:25 -0700
Cc: xen-users List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 14 Oct 2009 11:16:08 -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=vj2+F5lefWWcucEG8iJuTbNW4GarBNeoj9yAKXNpMCo=; b=ok/vUpKBM5BzeZpLKvVQalZDY2xCtpjtvk7+2QxQMYFrOxX3l+DyKDpAcGR7T85eX+ DJItf5z6A6CrQ9o4umB3O7+1h6Yh+Qm35jPOeQ/kSvSJt8BEY1qptnoJO0A8+lGjy5im eDmO+WWMdTGIxYlV8eociG0W2hZnKtpbwn77g=
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=bsf3xS65bWW3nncJvXx4IABaEqbx7iwRFu7MWl2Pi4vcInfIONuK6SHk0IwxlCxq5e HvE2igYdSes9Mzh5zdbrf/nsJU77TxQk9fDf9ER9K9NqAjIsjQ8Pbv6fhtyCa37Z/BVw qrGOr8+yxme6Y4xPtpIgyOxOQbElzJjljpOLM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f4527be0910140836n773edebdt111533bc415602a7@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

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