From: Boris Derzhavets Subject: Re: 2.6.30 dom0 Xen patches Date: Fri, 17 Jul 2009 14:14:45 -0700 (PDT) Message-ID: <715454.56874.qm@web56106.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0094543093==" 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: Xen-devel , Andrew Lyon Cc: Jan Beulich List-Id: xen-devel@lists.xenproject.org --===============0094543093== Content-Type: multipart/alternative; boundary="0-1655223846-1247865285=:56874" --0-1655223846-1247865285=:56874 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =A0 Seems to work nice Solaris 10 U7 (64-bit) HVM DomU=A0 loads pretty fast=A0 with PV drivers at Xen 3.4.1-rc7 Ubuntu 9.04 Dom0 with 2.6.30.1 xenified via rebased patch set V.3 =A0 =A0 I believe V.2 should be considered as deprecated due to recent message = from Jan Beulich :- >>> Boris Derzhavets 17.07.09 14:57 >>> >Fix patch set before applying. The second hunk is at best bogus: arch_probe_nr_irqs() only gets referenced from a code section that's inside CONFIG_SPARSE_IRQ, and when that option is selected, you'll have a duplicate symbol definition issue between the arch_probe_nr_irqs() in arch/x86/kernel/apic/io_apic.c and the one in drivers/xen/core/evtchn.c. Additionally, simply enabling the function in arch/x86/kernel/apic/io_apic.c does not do, as it may leave you with insufficient space for dynamic IRQs (which is why I cloned it into a properly working function in drivers/xen/core/evtchn.c). Jan --- On Fri, 7/17/09, Andrew Lyon wrote: From: Andrew Lyon Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches To: "Xen-devel" Cc: "Jan Beulich" Date: Friday, July 17, 2009, 2:11 PM > As I don't expect to get the stuff I have pushed out before our tree gets > switched to 2.6.31-rc, I'll attach the whole patch set as it is after fix= ing the > !ia32-emulation problem you pointed out. I have rebased the 2.6.30 Xen patches (xen-patches-2.6.30-20090703.tb2) that Jan Beulich was kind enough to send to me before openSUSE switch their tree to 2.6.31-git etc, the new files are available at http://code.google.com/p/gentoo-xen-kernel/downloads/list xen-sources-2.6.30-r2.ebuild xen-patches-2.6.30-3.tar.bz2 Non-Gentoo users can simply apply the patches to 2.6.30.1 in numeric order. As usual I did not include patches that are for backwards compatibility, suse specific features, experimental features (eg tmem), or that require patches to Xen itself. Note that James Harper's gplpv driver for networking (xennet.sys) does not work with 2.6.30, he has given me a patch which works around the problem but you will need to recompile the drivers yourself, the patch is: diff -r 36221c314d54 xennet/xennet_common.c --- a/xennet/xennet_common.c=A0 =A0 Wed Jul 15 20:05:36 2009 +1000 +++ b/xennet/xennet_common.c=A0 =A0 Fri Jul 17 23:53:12 2009 +1000 @@ -181,6 +181,12 @@ =A0 =A0 =A0 return PARSE_TOO_SMALL; =A0 =A0 =A0 =A0 =A0 } =A0 =A0 =A0 =A0 =A0 =A0 } =A0 =A0 =A0 =A0 =A0 =A0 + =A0 =A0 =A0 =A0 =A0 =A0 +=A0 if ((ULONG)XN_HDR_SIZE + pi->ip4_length > pi->= total_length) =A0 =A0 =A0 =A0 =A0 =A0 +=A0 { =A0 =A0 =A0 =A0 =A0 =A0 +=A0 =A0 KdPrint((__DRIVER_NAME "=A0 =A0=A0=A0XN_HD= R_SIZE + ip4_length (%d) > total_length (%d)\n", XN_HDR_SIZE + pi->ip4_length, pi->total_length)); =A0 =A0 =A0 =A0 =A0 =A0 +=A0 =A0 return PARSE_UNKNOWN_TYPE; =A0 =A0 =A0 =A0 =A0 =A0 +=A0 } =A0 =A0 =A0 =A0 =A0 =A0 =A0 pi->tcp_length =3D pi->ip4_length - pi->ip4_hea= der_length - pi->tcp_header_length; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 pi->tcp_remaining =3D pi->tcp_length; Andy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1655223846-1247865285=:56874 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
  Seems to work nice Solaris 10 U7 (64-b= it) HVM DomU  loads
pretty fast  with PV drivers at Xen 3.4.1-= rc7 Ubuntu 9.04 Dom0 with
2.6.30.1 xenified via rebased patch set V.3 
  I believe V.2 should be considered as deprecated due to r= ecent message from Jan Beulich :-

>>> Boris Derzhavets <= bderzhavets@yahoo.com> 17.07.09 14:57 &= gt;>>
>Fix patch set before applying.

The second hunk is= at best bogus: arch_probe_nr_irqs() only gets
referenced from a code se= ction that's inside CONFIG_SPARSE_IRQ, and
when that option is selected,= you'll have a duplicate symbol definition
issue between the arch_probe_= nr_irqs() in arch/x86/kernel/apic/io_apic.c
and the one in drivers/xen/core/evtchn.c= . Additionally, simply enabling
the function in arch/x86/kernel/apic/io_= apic.c does not do, as it may
leave you with insufficient space for dyna= mic IRQs (which is why I
cloned it into a properly working function in d= rivers/xen/core/evtchn.c).

Jan

--- On Fri, 7/17/09, Andrew= Lyon <andrew.lyon@gmail.com> wrote:

From: Andrew Lyon <andrew.lyon@gmail.com>
Subject: Re:= [Xen-devel] 2.6.30 dom0 Xen patches
To: "Xen-devel" <xen-devel@lists= .xensource.com>
Cc: "Jan Beulich" <JBeulich@novell.com>
Date= : Friday, July 17, 2009, 2:11 PM

> As I = don't expect to get the stuff I have pushed out before our tree gets
>= ; switched to 2.6.31-rc, I'll attach the whole patch set as it is after fixing the
> !ia32-emulation problem you pointed out.

I have = rebased the 2.6.30 Xen patches
(xen-patches-2.6.30-20090703.tb2) that Ja= n Beulich was kind enough to
send to me before openSUSE switch their tre= e to 2.6.31-git etc, the
new files are available at
http= ://code.google.com/p/gentoo-xen-kernel/downloads/list

xen-source= s-2.6.30-r2.ebuild
xen-patches-2.6.30-3.tar.bz2

Non-Gentoo users = can simply apply the patches to 2.6.30.1 in numeric order.

As usual = I did not include patches that are for backwards
compatibility, suse spe= cific features, experimental features (eg
tmem), or that require patches= to Xen itself.

Note that James Harper's gplpv driver for networking= (xennet.sys) does
not work with 2.6.30, he has given me a patch which w= orks around the
problem but you will need to recompile the drivers yourself, the patch
is:

diff -r 36221c314d54 xennet/xennet_commo= n.c
--- a/xennet/xennet_common.c    Wed Jul 15 20:05:36 2009 += 1000
+++ b/xennet/xennet_common.c    Fri Jul 17 23:53:12 2009 = +1000
@@ -181,6 +181,12 @@
      return PARSE_TOO_SMAL= L;
          }
        &= nbsp;   }
            +
  &nb= sp;         +  if ((ULONG)XN_HDR_SIZE + pi->ip4= _length > pi->total_length)
          &nb= sp; +  {
            +    K= dPrint((__DRIVER_NAME "     XN_HDR_SIZE + ip4_length(%d) > total_length (%d)\n", XN_HDR_SIZE + pi->ip4_length,
pi->= ;total_length));
            +   = ; return PARSE_UNKNOWN_TYPE;
            +  }

              p= i->tcp_length =3D pi->ip4_length - pi->ip4_header_length
- pi-&= gt;tcp_header_length;
              &= nbsp; pi->tcp_remaining =3D pi->tcp_length;


Andy

__= _____________________________________________
Xen-devel mailing list
= Xen-devel@lists.xensource.com
http://lists= .xensource.com/xen-devel

= =0A=0A=0A=0A --0-1655223846-1247865285=:56874-- --===============0094543093== 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 --===============0094543093==--