From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 10 Jul 2009 08:11:13 -0700 (PDT) Message-ID: <730818.1177.qm@web56107.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0128309527==" 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 , Jan Beulich Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org --===============0128309527== Content-Type: multipart/alternative; boundary="0-1974840611-1247238673=:1177" --0-1974840611-1247238673=:1177 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Two replacements CONFIG_SPARSE_IRQ by CONFIG_GENERIC_HARDIRQS =0A =0A60035_xen3-patch-2.6.29.patch1 line 11568 =0A+#ifdef CONFIG_SPARSE_IRQ =0A+ irq_to_desc(irq)->kstat_irqs[cpu] =3D 0; =0A+#else =0A kstat_cpu(cpu).irqs[irq] =3D 0; =0A =0A60036_xen3-patch-2.6.30.patch1 line 18283 =0A +#ifdef CONFIG_SPARSE_IRQ =0A+int __init arch_probe_nr_irqs(void) =0A+{ =0A+ int nr; =0A+ =0A+ if (nr_irqs > (NR_VECTORS * nr_cpu_ids)) =0A+ nr_irqs =3D NR_VECTORS * nr_cpu_ids; in 2.6.30 Andy's patch set allows to build working xenified 2.6.30.1 kernel been tested on Q9550,C2D E8400 boxes. Boris. --- On Fri, 7/10/09, Jan Beulich wrote: From: Jan Beulich Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches To: "Andrew Lyon" , "Boris Derzhavets" Cc: "Xen-devel" Date: Friday, July 10, 2009, 8:52 AM >>> Boris Derzhavets 10.07.09 14:40 >>> >I still believe in 60035_xen3-patch-2.6.29.patch1 line 11568=A0=20 > >+#ifdef CONFIG_SPARSE_IRQ >+=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0irq_to_desc(irq)->kstat_= irqs[cpu] =3D 0; >+#else >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 kstat_cpu(cpu).irqs[irq] = =3D 0; > >causes a problem.=20 Sure - that's what I keep telling you: This needs to be replaced by CONFIG_GENERIC_HARDIRQS in the .30 patch. Oh, I think I now understand what you first did: You apparently replaced the *other* +#ifdef CONFIG_SPARSE_IRQ in the .30 patch - that's wrong. You need to make the .30 patch *additionally* make the change indicated above. (Of course, you could do that in the .29 patch right away, but then your .29 patch will no longer properly reflect what's needed for that versi= on to build and/or work right.) Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1974840611-1247238673=:1177 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Two replacements CONFIG_SPARSE_IRQ by CONFIG_= GENERIC_HARDIRQS
=0A
=0A60035_xen3-patch-2.6.29.patch1 line 115= 68

=0A+#ifdef CONFIG_SPARSE_IRQ
=0A+ irq_to= _desc(irq)->kstat_irqs[cpu] =3D 0;
=0A+#else
=0A = kstat_cpu(cpu).irqs[irq] =3D 0;
=0A
=0A60036_xen3-patch-2.6.30.= patch1 line 18283
=0A
+#ifdef CONFIG_SPARSE_IRQ
=0A+int __init arc= h_probe_nr_irqs(void)
=0A+{
=0A+ int nr;
=0A+
=0A+ = if (nr_irqs > (NR_VECTORS * nr_cpu_ids))
=0A+ nr_irqs = =3D NR_VECTORS * nr_cpu_ids;


in 2.6.30 Andy's patch set allow= s to build working xenified 2.6.30.1 kernel
been tested on Q9550,C2D E84= 00 boxes.

Boris.

--- On Fri, 7/10/09, Jan Beulich <J= Beulich@novell.com> wrote:

From:= Jan Beulich <JBeulich@novell.com>
Subject: Re: [Xen-devel] 2.6.30= dom0 Xen patches
To: "Andrew Lyon" <andrew.lyon@gmail.com>, "Bori= s Derzhavets" <bderzhavets@yahoo.com>
Cc: "Xen-devel" <xen-deve= l@lists.xensource.com>
Date: Friday, July 10, 2009, 8:52 AM

>>> Boris Derzhavets <b= derzhavets@yahoo.com> 10.07.09 14:40 >>>
>I still bel= ieve in 60035_xen3-patch-2.6.29.patch1 line 11568 
>
>+#ifdef CONFIG_SPARSE_IRQ
>+      &nb= sp;                irq_to_desc= (irq)->kstat_irqs[cpu] =3D 0;
>+#else
>      =                   kstat_cpu(cp= u).irqs[irq] =3D 0;
>
>causes a problem.

Sure - that's = what I keep telling you: This needs to be replaced by
CONFIG_GENERIC_HAR= DIRQS in the .30 patch.

Oh, I think I now understand what you first = did: You apparently replaced
the *other* +#ifdef CONFIG_SPARSE_IRQ in th= e .30 patch - that's wrong.
You need to make the .30 patch *additionally= * make the change indicated
above. (Of course, you could do that in the = .29 patch right away, but then
your .29 patch will no longer properly re= flect what's needed for that version
to build and/or work right.)

Jan


____________________________________________= ___
Xen-devel mailing list
Xen-devel= @lists.xensource.com
http://lists.xensource.com/xen-devel

=0A=0A=0A=0A --0-1974840611-1247238673=:1177-- --===============0128309527== 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 --===============0128309527==--