[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Andrew Lyon <andrew.lyon@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.