Skip to contentSkip to conversation

2.6.30 dom0 Xen patches

DISCUSSION Boris Derzhavets 2 participants 2 messages Jul 17, 2009

lore
Share & tools
lore
#0 lore raw

  Seems to work nice Solaris 10 U7 (64-bit) 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 recent message from Jan Beulich :-

Quoted 2 lines
Quoted 1 line
Quoted 1 line

Boris Derzhavets <[email protected]> 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 <[email protected]> wrote:

From: Andrew Lyon <[email protected]>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Xen-devel" <[email protected]>
Cc: "Jan Beulich" <[email protected]>
Date: Friday, July 17, 2009, 2:11 PM

Quoted 3 lines

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 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:

xennet/xennet_common.c    Fri Jul 17 23:53:12 2009 +1000 renamed from xennet/xennet_common.c    Wed Jul 15 20:05:36 2009 +1000 +0 -0
diff -r 36221c314d54 xennet/xennet_common.c
@@ -181,6 +181,12 @@

      return PARSE_TOO_SMALL;
          }
            }
            +
            +  if ((ULONG)XN_HDR_SIZE + pi->ip4_length > pi->total_length) +  {
            +    KdPrint((__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;
            +  }

              pi->tcp_length = pi->ip4_length - pi->ip4_header_length
- pi->tcp_header_length;
                pi->tcp_remaining = pi->tcp_length;

Andy

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 7 lines · Boris Derzhavets

  Seems to work nice Solaris 10 U7 (64-bit) 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 recent message from Jan Beulich :-

So where to get the final perfect patch? I would like to try that with 3.4.1

Thanks,
J

Quoted 82 lines
Quoted 2 lines
Quoted 1 line
Quoted 1 line

Boris Derzhavets <[email protected]> 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 <[email protected]> wrote:

From: Andrew Lyon <[email protected]>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Xen-devel" <[email protected]>
Cc: "Jan Beulich" <[email protected]>
Date: Friday, July 17, 2009, 2:11 PM

Quoted 4 lines

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 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

xennet/xennet_common.c    Fri Jul 17 23:53:12 2009 +1000 renamed from xennet/xennet_common.c    Wed Jul 15 20:05:36 2009 +1000 +0 -0
@@ -181,6 +181,12 @@
       return PARSE_TOO_SMALL;
           }
             }

            +
            +  if ((ULONG)XN_HDR_SIZE + pi->ip4_length > pi->total_length) +  {
            +    KdPrint((__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;
            +  }

              pi->tcp_length = pi->ip4_length - pi->ip4_header_length
- pi->tcp_header_length;
                pi->tcp_remaining = pi->tcp_length;

Andy

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel