From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 17 Jul 2009 05:57:51 -0700 (PDT) Message-ID: <782791.23573.qm@web56104.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0-18713579-1247835471=:23573" 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 --0-18713579-1247835471=:23573 Content-Type: multipart/alternative; boundary="0-1983628246-1247835471=:23573" --0-1983628246-1247835471=:23573 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Fix patch set before applying. 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:38 AM On Fri, Jul 17, 2009 at 03:19:46AM -0700, Boris Derzhavets wrote: > Sorry, i've got your point - just one more *.patch1 file. > That's it. >=20 Yep, that's what I meant :) Then you can just attach the additional patch to an email and Andy can then later add it as a part of his patchset.. -- Pasi > Thanks. > Boris. >=20 > --- On Fri, 7/17/09, Pasi K=E4rkk=E4inen wrote: >=20 > 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 >=20 > 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 >=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= it > right.. also no need to explain many times what to change and where..=20 >=20 > -- Pasi >=20 > > --- 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/lis= t > > > , 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 c= ouple > > of lines earlier.=A0 The commit d52a61c04c6c0814ca270a088feedb126436598= e 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 >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >=20 >=20 >=20 >=A0 =A0 =A0=A0=A0 =0A=0A=0A --0-1983628246-1247835471=:23573 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Fix patch set before applying.

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

From: Pasi K=E4rkk=E4inen &l= t;pasik@iki.fi>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
T= o: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "Andrew Lyon" &l= t;andrew.lyon@gmail.com>, "Xen-devel" <xen-devel@lists.xensource.com&= gt;, "Kris Shannon" <kris@shannon.id.au>
Date: Friday, July 17, 20= 09, 6:38 AM

On Fri, Jul 17, 2009 at 03:19:4= 6AM -0700, Boris Derzhavets wrote:
> Sorry, i've got your point - jus= t one more *.patch1 file.
> That's it.
>

Yep, that's wh= at I meant :)

Then you can just attach the additional patch to an em= ail and Andy can then
later add it as a part of his patchset..

-- Pasi
> Thanks.
> Boris.
>
> --- On Fri, 7/17/09, Pas= i K=E4rkk=E4inen <pasik@iki.fi> wrote:
>
> From: Pasi= K=E4rkk=E4inen <pasik@iki.fi>
> Subject: Re: [Xen-devel] 2.= 6.30 dom0 Xen patches
> To: "Boris Derzhavets" <b= derzhavets@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 Derzhavets wrote:
> >
> &g= t; 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(irq)->kst= at_irqs[cpu] =3D 0;
> > +#else
> > kstat_cpu(cpu).irqs[ir= q] =3D 0;
> > ****************************************************=
> > In 60036_xen3-patch-2.6.30.patch1 line 18283
> > ***= *************************************************
> > +#ifdef CONF= IG_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_id= s;
> >
> > To fix this issue. But, i don't know how to r= ebuild Andy's patch set
> > based on your commit.
> > > > Boris.
> > P.S.  I haven't heard from Andy for a w= hile.
> >
>
> 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<= br>>
> > --- 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.x= ensource.com>
> > Date: Thursday, July 16, 2009, 6:56 PM> >
> > 2009/7/2 Andrew Lyon <andrew.l= yon@gmail.com>:
> > > I have rebased the xen-patches fro= m opensuse
> > > kernel-source-2.6.30-50.1.src.rpm so that they= can be applied to
> > > vanilla 2.6.30, the usual patches tarb= all 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 n= otes:
> > >
> > > both dom0 and domU require CONFIG= _SPARSE_IRQ=3Dy and CONFIG_HOTPLUG=3Dy
> > > 64 bit dom0/domU r= equires CONFIG_IA32_EMULATION=3Dy
> > >
> > > Andy<= br>> >
> > The error:
> > drivers/xen/core/evtchn.= c: In function 'unbind_from_irq':
> > drivers/xen/core/evtchn.c:64= 1: error: 'struct kernel_stat' has no
> > member named 'irqs'
&= gt; >
> > when CONFIG_SPARSE_IRQ is not set is due to a missin= g #ifdef change a couple
> > of lines earlier.  The commit d5= 2a61c04c6c0814ca270a088feedb126436598e altered
> > the kernel_stat.irqs dependency to CONFIG_GENERIC_HARDIRQS.
> >
&= gt; > _______________________________________________
> > Xen-d= evel mailing list
> > Xen-devel@l= ists.xensource.com
> > http://lists.xensource.com/xen-devel
>= ; >
> >
> >
> >      &= nbsp;
> > _______________________________________________
> = > Xen-devel mailing list
> > X= en-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel<= /a>
>
>
> _____________________________________________= __
> Xen-devel mailing list
>
Xen-devel@= lists.xensource.com
> http://lists.xensource.com/xen-devel
> >
>
>       

=0A=0A --0-1983628246-1247835471=:23573-- --0-18713579-1247835471=:23573 Content-Type: application/octet-stream; name="2.6.30-2.patch1" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="2.6.30-2.patch1" LS0tIHhlbi1wYXRjaGVzLTIuNi4zMC0yLm9yaWcvNjAwMzVfeGVuMy1wYXRj aC0yLjYuMjkucGF0Y2gxCTIwMDktMDYtMzAgMTg6MTY6MjguMDAwMDAwMDAw ICswNDAwCisrKyB4ZW4tcGF0Y2hlcy0yLjYuMzAtMi82MDAzNV94ZW4zLXBh dGNoLTIuNi4yOS5wYXRjaDEJMjAwOS0wNy0xNyAxNDo1MTo0NC4xMzI3MTI3 NzggKzA0MDAKQEAgLTEwMDQzLDcgKzEwMDQzLDcgQEAKICAKICAJCS8qIFph cCBzdGF0cyBhY3Jvc3MgSVJRIGNoYW5nZXMgb2YgdXNlLiAqLwogIAkJZm9y X2VhY2hfcG9zc2libGVfY3B1KGNwdSkKLSsjaWZkZWYgQ09ORklHX1NQQVJT RV9JUlEKKysjaWZkZWYgQ09ORklHX0dFTkVSSUNfSEFSRElSUVMKICsJCQlp cnFfdG9fZGVzYyhpcnEpLT5rc3RhdF9pcnFzW2NwdV0gPSAwOwogKyNlbHNl CiAgCQkJa3N0YXRfY3B1KGNwdSkuaXJxc1tpcnFdID0gMDsKLS0tIHhlbi1w YXRjaGVzLTIuNi4zMC0yLm9yaWcvNjAwMzZfeGVuMy1wYXRjaC0yLjYuMzAu cGF0Y2gxCTIwMDktMDYtMzAgMTg6MTY6MjguMDAwMDAwMDAwICswNDAwCisr KyB4ZW4tcGF0Y2hlcy0yLjYuMzAtMi82MDAzNl94ZW4zLXBhdGNoLTIuNi4z MC5wYXRjaDEJMjAwOS0wNy0xNyAxNToyMzoxMi45ODg5NjY5MzAgKzA0MDAK QEAgLTU1MTQsNyArNTUxNCw3IEBACiAgCXByaW50ayhLRVJOX0RFQlVHICJu cl9pcnFzX2dzaTogJWRcbiIsIG5yX2lycXNfZ3NpKTsKICB9CiArCi0rI2lm ZGVmIENPTkZJR19TUEFSU0VfSVJRCisrI2lmZGVmIENPTkZJR19HRU5FUklD X0hBUkRJUlFTCiAraW50IF9faW5pdCBhcmNoX3Byb2JlX25yX2lycXModm9p ZCkKICt7CiArCWludCBucjsK --0-18713579-1247835471=:23573 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 --0-18713579-1247835471=:23573--