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] Re: Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6

To: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] Re: Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6.34.7 vanilla
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Thu, 14 Oct 2010 09:14:45 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 Oct 2010 01:16:04 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=g0COWwtjJhJ/nWgLzqpaY5g2DshOIWlyUd2m4gHemjw=; b=uMva6dptb3is7K4u/2HSQXs4FF0MqyCY0Eosl4LkVrZfWI5U751LwYXtUboOM/8t5l G+2SvV9xpywzn5rFEI4mvPXBgfdPH7AlTUxwoYkVk/te9b5Ivn3GmUQrla/BTkaJ89mB mjRVUE/EgKqushKXXMjo9+vZMPdVnAzoMWlQY=
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; b=hO2oy6dhDcSLvkrihPRGOw+/4gpCrk/cuaFNeoRWrXKjKJGYcSKvImuS0liCJywIbm tAtGab7Cu3tCU8gWQNBoUqVcN8nbKvCcyPoAGYtaMrwny0GVqoQKoV3ByKwE4Ax/hyXE R1BrM6BIXKQKqQmKuJ59uBDnsKV+KIfWKcNe0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <851230.88595.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <AANLkTink1va1OeQOjcxnLoMWbZJef0dLY84-w1UtOb5_@xxxxxxxxxxxxxx> <851230.88595.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Boris,

The best way to check which kernel version the patches are for is to check the .ebuild, for example:

xen-sources-2.6.34-r3.ebuild

K_GENPATCHES_VER="9"
XENPATCHES_VER="4"

Check http://sourcestest.gentoo.org/cgi-bin/viewvc.cgi/linux-patches/genpatches-2.6/tags/2.6.34-9 and you can see that 2.6.34.5 is the appropriate version.

New patches for .7:

http://gentoo-xen-kernel.googlecode.com/files/xen-sources-2.6.34-r4.ebuild
http://gentoo-xen-kernel.googlecode.com/files/xen-patches-2.6.34-5.tar.bz2

Andy




On Mon, Oct 11, 2010 at 9:48 AM, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
> I'm not surprised that it fails to apply cleanly.

It applies cleanly, but gives errors on kernel build in drivers/base/cpu.c
related with HOTPLUG_CPU=y

Boris.

--- On Sun, 10/10/10, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:

From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Subject: [Xen-users] Re: Attempt to apply xen-patches-2.6.34-4.tar.bz2 to 2.6.34.7 vanilla
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Date: Sunday, October 10, 2010, 3:05 PM

I will upload a updated patchset tomorrow, -4 was made before .7 was
out and I'm not surprised that it fails to apply cleanly.

I've been too busy to update the patches much recently but I will try
to do them all this week.

Andy

On 09/10/2010, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
> . . . . . . . . . . . . . . .
>
>   LD      drivers/built-in.o
>   LD      vmlinux.o
>   MODPOST vmlinux.o
>   GEN     .version
>   CHK     include/generated/compile.h
>   UPD     include/generated/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> drivers/built-in.o: In function `cpu_release_store':
> /root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:96: undefined reference to
> `arch_cpu_release'
> drivers/built-in.o: In function `cpu_probe_store':
> /root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:88: undefined reference to
> `arch_cpu_probe'
> drivers/built-in.o: In function `store_online':
> /root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:42: undefined reference to
> `cpu_hotplug_driver_lock'
> /root/xenkernel/linux-2.6.34.7/drivers/base/cpu.c:57: undefined reference to
> `cpu_hotplug_driver_unlock'
> make: *** [.tmp_vmlinux1] Error 1
>
>
> Commenting undefined references gives an option to build the 2.6.34.7
> xenified aka Suse :-
> --- cpu.c.orig    2010-10-09 23:31:26.641580071 +0400
> +++ cpu.c    2010-10-10 00:02:40.913581011 +0400
> @@ -39,7 +39,7 @@
>      struct cpu *cpu = container_of(dev, struct cpu, sysdev);
>      ssize_t ret;
>
> -    cpu_hotplug_driver_lock();
> +    /* cpu_hotplug_driver_lock(); */
>      switch (buf[0]) {
>      case '0':
>          ret = cpu_down(cpu->sysdev.id);
> @@ -54,7 +54,7 @@
>      default:
>          ret = -EINVAL;
>      }
> -    cpu_hotplug_driver_unlock();
> +       /* cpu_hotplug_driver_unlock(); */
>
>      if (ret >= 0)
>          ret = count;
> @@ -85,7 +85,8 @@
>                     const char *buf,
>                     size_t count)
>  {
> -    return arch_cpu_probe(buf, count);
> +      /* return arch_cpu_probe(buf, count); */
> +      return 0;
>  }
>
>  static ssize_t cpu_release_store(struct sysdev_class *class,
> @@ -93,7 +94,8 @@
>                   const char *buf,
>                   size_t count)
>  {
> -    return arch_cpu_release(buf, count);
> +      /* return arch_cpu_release(buf, count); */
> +      return 0;
>  }
>
> Boris.
>
>
>
>
>
>
>

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


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