From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 17 Jul 2009 00:11:18 -0700 (PDT) Message-ID: <854047.3663.qm@web56102.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1976246915==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andrew Lyon , Kris Shannon Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============1976246915== Content-Type: multipart/alternative; boundary="0-1412717563-1247814678=:3663" --0-1412717563-1247814678=:3663 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I=A0 made two replacements=20 CONFIG_SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS. **************************************************** In 60035_xen3-patch-2.6.29.patch1 line 11568 **************************************************** +#ifdef CONFIG_SPARSE_IRQ + irq_to_desc(irq)->kstat_irqs[cpu] =3D 0; +#else kstat_cpu(cpu).irqs[irq] =3D 0; **************************************************** In 60036_xen3-patch-2.6.30.patch1 line 18283 **************************************************** +#ifdef CONFIG_SPARSE_IRQ +int __init arch_probe_nr_irqs(void) +{ + int nr; + + if (nr_irqs > (NR_VECTORS * nr_cpu_ids)) + nr_irqs =3D NR_VECTORS * nr_cpu_ids; To fix this issue. But, i don't know how to rebuild Andy's patch set based on your commit. Boris. P.S.=A0 I haven't heard from Andy for a while. --- On Thu, 7/16/09, Kris Shannon wrote: From: Kris Shannon Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches To: "Andrew Lyon" Cc: "Xen-devel" Date: Thursday, July 16, 2009, 6:56 PM 2009/7/2 Andrew Lyon : > I have rebased the xen-patches from opensuse > kernel-source-2.6.30-50.1.src.rpm so that they can be applied to > vanilla 2.6.30, the usual patches tarball and gentoo ebuild are > available at http://code.google.com/p/gentoo-xen-kernel/downloads/list > , if you are not using Gentoo simply apply the patches in numeric > order. > > Some notes: > > both dom0 and domU require CONFIG_SPARSE_IRQ=3Dy and CONFIG_HOTPLUG=3Dy > 64 bit dom0/domU requires CONFIG_IA32_EMULATION=3Dy > > Andy The error: drivers/xen/core/evtchn.c: In function 'unbind_from_irq': drivers/xen/core/evtchn.c:641: error: 'struct kernel_stat' has no member named 'irqs' when CONFIG_SPARSE_IRQ is not set is due to a missing #ifdef change a coupl= e of lines earlier.=A0 The commit d52a61c04c6c0814ca270a088feedb126436598e al= tered the kernel_stat.irqs dependency to CONFIG_GENERIC_HARDIRQS. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1412717563-1247814678=:3663 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

I  made two replacements
CONFIG_= SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS.

*****************************= ***********************
In 60035_xen3-patch-2.6.29.patch1 line 11568
= ****************************************************
+#ifdef CONFIG_SPAR= SE_IRQ
+ irq_to_desc(irq)->kstat_irqs[cpu] =3D 0;
+#else
kstat_= cpu(cpu).irqs[irq] =3D 0;
**********************************************= ******
In 60036_xen3-patch-2.6.30.patch1 line 18283
*****************= ***********************************
+#ifdef CONFIG_SPARSE_IRQ
+int __= init arch_probe_nr_irqs(void)
+{
+ int nr;
+
+ if (nr_irqs >= (NR_VECTORS * nr_cpu_ids))
+ nr_irqs =3D NR_VECTORS * nr_cpu_ids;
To fix this issue. But, i don't know how to rebuild Andy's patch set
b= ased on your commit.

Boris.
P.S.  I haven't heard from Andy = for a while.

--- On Thu, 7/16/09, Kris Shannon <kris@shannon.id.= au> wrote:

From: Kris Shannon &l= t;kris@shannon.id.au>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patche= s
To: "Andrew Lyon" <andrew.lyon@gmail.com>
Cc: "Xen-devel" <= ;xen-devel@lists.xensource.com>
Date: Thursday, July 16, 2009, 6:56 P= M

2009/7/2 Andrew Lyon <andrew.lyon@gmail.com>:
> I have rebased the xen-patches from= opensuse
> kernel-source-2.6.30-50.1.src.rpm so that they can be app= lied to
> vanilla 2.6.30, the usual patches tarball and gentoo ebuild= are
> available at http://code.google.com/p/gentoo-xen-kernel/downloads/lis= t
> , if you are not using Gentoo simply apply the patches in num= eric
> order.
>
> Some notes:
>
> both dom0 a= nd domU require CONFIG_SPARSE_IRQ=3Dy and CONFIG_HOTPLUG=3Dy
> 64 bit= dom0/domU requires CONFIG_IA32_EMULATION=3Dy
>
> Andy

T= he error:
drivers/xen/core/evtchn.c: In function 'unbind_from_irq':
d= rivers/xen/core/evtchn.c:641: error: 'struct kernel_stat' has no
member = named 'irqs'

when CONFIG_SPARSE_IRQ is not set is due to a missing #= ifdef change a couple
of lines earlier.  The commit d52a61c04c6c081= 4ca270a088feedb126436598e altered
the kernel_stat.irqs dependency to CON= FIG_GENERIC_HARDIRQS.

______________________________________________= _
Xen-devel mailing list
Xen-devel@lists.xe= nsource.com
http://lists.xensource.com/xen-devel
=

=0A=0A=0A=0A --0-1412717563-1247814678=:3663-- --===============1976246915== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1976246915==--