From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 17 Jul 2009 03:19:46 -0700 (PDT) Message-ID: <169034.37156.qm@web56105.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0506497906==" 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: =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= Cc: Andrew Lyon , Xen-devel , Kris Shannon List-Id: xen-devel@lists.xenproject.org --===============0506497906== Content-Type: multipart/alternative; boundary="0-1305918671-1247825986=:37156" --0-1305918671-1247825986=:37156 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Sorry, i've got your point - just one more *.patch1 file. That's it. Thanks. Boris. --- On Fri, 7/17/09, Pasi K=E4rkk=E4inen wrote: From: Pasi K=E4rkk=E4inen Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches To: "Boris Derzhavets" Cc: "Andrew Lyon" , "Xen-devel" , "Kris Shannon" Date: Friday, July 17, 2009, 6:06 AM On Fri, Jul 17, 2009 at 12:11:18AM -0700, Boris Derzhavets wrote: >=20 > I=A0 made two replacements=20 > CONFIG_SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS. >=20 > **************************************************** > 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; >=20 > To fix this issue. But, i don't know how to rebuild Andy's patch set > based on your commit. >=20 > Boris. > P.S.=A0 I haven't heard from Andy for a while. >=20 Boris: Just generate a new (additional) patch that fixes the problem with CONFIG_SPARSE_IRQ. Much easier for other people to apply it then, and get i= t right.. also no need to explain many times what to change and where..=20 -- Pasi > --- On Thu, 7/16/09, Kris Shannon wrote: >=20 > 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 >=20 > 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 >=20 > 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' >=20 > when CONFIG_SPARSE_IRQ is not set is due to a missing #ifdef change a cou= ple > of lines earlier.=A0 The commit d52a61c04c6c0814ca270a088feedb126436598e = altered > the kernel_stat.irqs dependency to CONFIG_GENERIC_HARDIRQS. >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20 >=20 >=A0 =A0 =A0=A0=A0 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1305918671-1247825986=:37156 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Sorry, i've got your point - just one more *.= patch1 file.
That's it.

Thanks.
Boris.

--- On Fri, 7= /17/09, Pasi K=E4rkk=E4inen <pasik@iki.fi> wrote:

From: Pasi K=E4rkk=E4inen <pasik@iki.fi>
S= ubject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Boris Derzhavets" &= lt;bderzhavets@yahoo.com>
Cc: "Andrew Lyon" <andrew.lyon@gmail.com= >, "Xen-devel" <xen-devel@lists.xensource.com>, "Kris Shannon" <= ;kris@shannon.id.au>
Date: Friday, July 17, 2009, 6:06 AM

On Fri, Jul 17, 2009 at 12:11:18AM -0700, Boris Derzha= vets wrote:
>
> I  made two replacements
> CONFIG_= SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS.
>
> ****************************************************
> In 60035_xen3= -patch-2.6.29.patch1 line 11568
> ***********************************= *****************
> +#ifdef CONFIG_SPARSE_IRQ
> + irq_to_desc(i= rq)->kstat_irqs[cpu] =3D 0;
> +#else
> kstat_cpu(cpu).irqs[i= rq] =3D 0;
> ****************************************************
= > In 60036_xen3-patch-2.6.30.patch1 line 18283
> *****************= ***********************************
> +#ifdef CONFIG_SPARSE_IRQ
&g= t; +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 do= n't know how to rebuild Andy's patch set
> based on your commit.
&= gt;
> Boris.
> P.S.  I haven't heard from Andy for a whil= e.
>

Boris: Just generate a new (additional) patch that fixes the problem with
CONFIG_SPARSE_IRQ. Much easier for other people = to apply it then, and get it
right.. also no need to explain many times = what to change and where..

-- Pasi

> --- On Thu, 7/16/09,= Kris Shannon <kris@shannon.id.au> wrote:
>
= > From: Kris Shannon <kris@shannon.id.au>
>= Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
> To: "Andrew Lyon"= <andrew.lyon@gmail.com>
> Cc: "Xen-devel"= <xen-devel@lists.xensource.com>=
> Date: Thursday, July 16, 2009, 6:56 PM
>
> 2009/7/2 A= ndrew Lyon <andrew.lyon@gmail.com>:
> > I have rebased t= he 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 patc= hes tarball and gentoo ebuild are
> > available at ht= tp://code.google.com/p/gentoo-xen-kernel/downloads/list
> > , = if you are not using Gentoo simply apply the patches in numeric
> >= ; order.
> >
> > Some notes:
> >
> > bo= th dom0 and domU require CONFIG_SPARSE_IRQ=3Dy and CONFIG_HOTPLUG=3Dy
&g= t; > 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: e= rror: 'struct kernel_stat' has no
> member named 'irqs'
>
> w= hen CONFIG_SPARSE_IRQ is not set is due to a missing #ifdef change a couple=
> of lines earlier.  The commit d52a61c04c6c0814ca270a088feedb1= 26436598e altered
> the kernel_stat.irqs dependency to CONFIG_GENERIC= _HARDIRQS.
>
> _______________________________________________=
> Xen-devel mailing list
> Xe= n-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel>
>
>
>       
> __= _____________________________________________
> Xen-devel mailing lis= t
> Xen-devel@lists.xensource.com
>
http://= lists.xensource.com/xen-devel


______________________________= _________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel<= br>

=0A=0A=0A=0A --0-1305918671-1247825986=:37156-- --===============0506497906== 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 --===============0506497906==--