From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 10 Jul 2009 05:40:32 -0700 (PDT) Message-ID: <614298.25809.qm@web56102.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1988174880==" 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 --===============1988174880== Content-Type: multipart/alternative; boundary="0-835195764-1247229632=:25809" --0-835195764-1247229632=:25809 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 irq_to_= desc(irq)->kstat_irqs[cpu] =3D 0; +#else =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 kstat= _cpu(cpu).irqs[irq] =3D 0; causes a problem.=20 Working xenified 2.6.30.1 kernel may be built changing one more dependency Boris. --- On Fri, 7/10/09, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches To: "Andrew Lyon" , "Jan Beulich" Cc: "Xen-devel" Date: Friday, July 10, 2009, 5:31 AM The first time and=A0 it's in this tread (about week ago), captured entries= and selected the only one 2.6.30 patch file follow you instruction,=20 as i understood it - 60036_xen3-patch-2.6.30.patch1 All entries found :- -# if !defined(CONFIG_SPARSE_IRQ) && NR_CPUS < MAX_IO_APICS -# elif defined(CONFIG_SPARSE_IRQ) && 8 * NR_CPUS > 32 * MAX_IO_APICS +# elif defined(CONFIG_SPARSE_IRQ) +#ifdef CONFIG_SPARSE_IRQ I've just replaced in 60036_xen3-patch-2.6.30.patch1 +#ifdef CONFIG_SPARSE_IRQ =A0=A0 by +#ifdef CONFIG_GENERIC_HARDIRQS due to my understanding term dependency ( it might be wrong ) Then applied Andy's patch set and built 2.6.30 xenified kernel with no erro= rs. This kernel at runtime has serious bugs with loading PV drivers in HVM=20 and STUB domains. So, is pretty=0A much useless In case of 2.6.30.1 vanilla kernel this step doesn't help anymore. Compilation fails in same place ( same function). Even been compiled with CONFIG_SPARSE_IRQ=3Dy in .config 2.6.30.1 xenified kernel doesn't have bug mentioned above and it's very important. Thank you. 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, 4:55 AM >>> Boris Derzhavets 10.07.09 10:26 >>> >Actually, manually setting=A0 CONFIG_SPARSE_IRQ=3Dy in .config also allows >to build working xenified 2.6.30.1 kernel for C2D & Q9550 CPUs .=20 >But, you've also criticize this action. I didn't. All I said is that the build succeeding shouldn't depend on what = value you select here. >If it's not a secret ,please, explain how to change dependency in 2.6.30 >patch properly ?=20 Quoting my earlier mail: >> May I ask why you found the first and third ones to be necessary? Unless >> it's because of the conditional in the loop right after the commen "Zap >> stats across IRQ changes of use." in unbind_from_irq(), which I fixed a >> few days ago, but didn't push out to our internal repo so far. (The fix >> is to change the dependency from CONFIG_SPARSE_IRQ=0A to >> CONFIG_GENERIC_HARDIRQS in the 2.6.30 patch.) And there I meant *only* this one place, not a general replacement everywhere in the patches (and in particular not in the .29 one). If that isn't enough, you'll have to let me know what build issue you still encounter. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A =20 -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-835195764-1247229632=:25809 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I still believe in 60035_xen3-patch-2.6.29.pa= tch1 line 11568 

+#ifdef CONFIG_SPARSE_IRQ
+  &nb= sp;            =         irq_to_desc(irq)->kstat_irqs[= cpu] =3D 0;
+#else
        &n= bsp;            = ;   kstat_cpu(cpu).irqs[irq] =3D 0;

causes a problem.
= Working xenified 2.6.30.1 kernel may be built changing one more dependency<= br>
Boris.

--- On Fri, 7/10/09, Boris Derzhavets <bderzh= avets@yahoo.com> wrote:

From: Bo= ris Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Xen-devel] 2.= 6.30 dom0 Xen patches
To: "Andrew Lyon" <andrew.lyon@gmail.com>, "Jan Beuli= ch" <JBeulich@novell.com>
Cc: "Xen-devel" <xen-devel@lists.xens= ource.com>
Date: Friday, July 10, 2009, 5:31 AM

=
The first time and  it's in this tread (about week ago), cap= tured entries and selected the only one 2.6.30 patch file follow you instru= ction,
as i understood it - 60036_xen3-patch-2.6.30.patch1

All e= ntries found :-

-# if !defined(CONFIG_SPARSE_IRQ) && NR_CPUS= < MAX_IO_APICS
-# elif defined(CONFIG_SPARSE_IRQ) && 8 * NR_= CPUS > 32 * MAX_IO_APICS
+# elif defined(CONFIG_SPARSE_IRQ)
+#ifde= f CONFIG_SPARSE_IRQ

I've just replaced in 60036_xen3-patch-2.6.30.pat= ch1

+#ifdef CONFIG_SPARSE_IRQ
   by
+#ifdef CONFIG_G= ENERIC_HARDIRQS

due to my understanding term dependency ( it might b= e wrong )

Then applied Andy's patch set and built 2.6.30 xenified ke= rnel with no errors.
This kernel at runtime has serious bugs with loadin= g PV drivers in HVM
and STUB domains. So, is pretty=0A much useless
=
In case of 2.6.30.1 vanilla kernel this step doesn't help anymore.
C= ompilation fails in same place ( same function).

Even been compiled = with CONFIG_SPARSE_IRQ=3Dy in .config 2.6.30.1
xenified kernel doesn't h= ave bug mentioned above and it's very important.

Thank you.
Boris=

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

From: Jan Beulich <JBeuli= ch@novell.com>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To= : "Andrew Lyon" <andrew.lyon@gmail.com>, "Boris Derzhavets" <bderz= havets@yahoo.com>
Cc: "Xen-devel" <xen-devel@lists.xensource.com&g= t;
Date: Friday, July 10, 2009, 4:55 AM

= >>> Boris Derzhavets <bderzhavets@yahoo.com= > 10.07.09 10:26 >>>
>Actually, manually setting  CONFIG_SPARSE_IRQ=3Dy in .config also allows
>= ;to build working xenified 2.6.30.1 kernel for C2D & Q9550 CPUs .
&= gt;But, you've also criticize this action.

I didn't. All I said is t= hat the build succeeding shouldn't depend on what value
you select here.=

>If it's not a secret ,please, explain how to change dependency = in 2.6.30
>patch properly ?

Quoting my earlier mail:

&= gt;> May I ask why you found the first and third ones to be necessary? U= nless
>> it's because of the conditional in the loop right after t= he commen "Zap
>> stats across IRQ changes of use." in unbind_from= _irq(), which I fixed a
>> few days ago, but didn't push out to ou= r internal repo so far. (The fix
>> is to change the dependency fr= om CONFIG_SPARSE_IRQ=0A to
>> CONFIG_GENERIC_HARDIRQS in the 2.6.3= 0 patch.)

And there I meant *only* this one place, not a general rep= lacement
everywhere in the patches (and in particular not in the .29 one= ).

If that isn't enough, you'll have to let me know what build issue= you still
encounter.

Jan


____________________________= ___________________
Xen-devel mailing list
Xen-de= vel@lists.xensource.com
http://lists.xensource.com/xen-de= vel

=0A=0A
-----Inline Attachment Follows-----

= _______________________________________________
Xen-devel mailing listXen-devel@lists.xensource.com
http://list= s.xensource.com/xen-devel

= =0A=0A --0-835195764-1247229632=:25809-- --===============1988174880== 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 --===============1988174880==--