Skip to contentSkip to conversation

2.6.30 dom0 Xen patches

DISCUSSION Andrew Lyon 7 participants 12 messages Jul 1, 2009 – Jul 17, 2009 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

#1 lore raw
Quoted 7 lines · 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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 7 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

While this kernel seems to work ok as dom0 or domU it seems to be incompatible with James Harpers gplpv drivers, probably something has been changed in the networking code and the drivers need to be updated, I have contacted James about this and I hope we will be able to work together to figure it out and fix the problem, but if you use gplpv please hold off upgrading for now!

Andy

#3 lore raw

2.6.30.1-rc1 dom0 tarball

In reply to Andrew Lyon
Quoted 7 lines · 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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 6 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

hello Andy,

many thanks for your work.
I have taken your patch set and applied it on top of vanilla 2.6.30.1-rc1 and applied this patch for gcc4.3 bug:

http://xenbits.xen.org/gitweb?p=xenclient/linux-2.6.27-pq.git;a=blob_plain;f=master/clobber-induction-variable.patch;hb=HEAD

for the lazy people out there, here is the distclean tarball:

http://x17.eu/linux-2.6.30.1-rc1-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz
http://x17.eu/linux-2.6.30.1-rc1-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz.md5

--
daniel

#4 lore raw
In reply to Andrew Lyon
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Andrew Lyon <[email protected]> 01.07.09 19:15 >>>

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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 4 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

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 to CONFIG_GENERIC_HARDIRQS in the 2.6.30 patch.)

The second one seems less meaningful, as I wouldn't think anyone would build a general use (Xen) kernel with EMBEDDED=y, and HOTPLUG is not user selectable without EMBEDDED.

May I also ask for you to let us know about fixes to the patches that you find necessary which aren't just due to you applying them to plain 2.6.30?

Thanks, Jan

#11 lore raw

2.6.30.1-rc2 dom0 tarball

In reply to Andrew Lyon

<where>
http://x17.eu/linux-2.6.30.1-rc2-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz
http://x17.eu/linux-2.6.30.1-rc2-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz.md5
</where>

<what>

Quoted 7 lines · 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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 6 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

plus

http://xenbits.xen.org/gitweb?p=xenclient/linux-2.6.27-pq.git;a=blob_plain;f=master/clobber-induction-variable.patch;hb=HEAD
</what>

--
daniel

#12 lore raw

updated dom0 tarballs

In reply to Andrew Lyon

i have created a directory, so you can check this http://x17.eu/xen/ url after a new vanilla stable release for updates...

<where>
http://x17.eu/xen/
http://x17.eu/xen/linux-2.6.29.6-xen.aka.suse-xenified-2.6.29-62.1-rebased.patches.by.andrew.lyon.tar.gz
http://x17.eu/xen/linux-2.6.29.6-xen.aka.suse-xenified-2.6.29-62.1-rebased.patches.by.andrew.lyon.tar.gz.md5
http://x17.eu/xen/linux-2.6.30.1-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz
http://x17.eu/xen/linux-2.6.30.1-xen.aka.suse-xenified-2.6.30-50.1-rebased.patches.by.andrew.lyon.tar.gz.md5
</where>

<what>

Quoted 7 lines · 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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 6 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

plus

http://xenbits.xen.org/gitweb?p=xenclient/linux-2.6.27-pq.git;a=blob_plain;f=master/clobber-induction-variable.patch;hb=HEAD
</what>

--
daniel

#5 lore raw
In reply to Jan Beulich
Quoted 20 lines · Jan Beulich
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Andrew Lyon <[email protected]> 01.07.09 19:15 >>>

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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 4 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

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 to CONFIG_GENERIC_HARDIRQS in the 2.6.30 patch.)

Quoted 7 lines

The second one seems less meaningful, as I wouldn't think anyone would build a general use (Xen) kernel with EMBEDDED=y, and HOTPLUG is not user selectable without EMBEDDED.

May I also ask for you to let us know about fixes to the patches that you find necessary which aren't just due to you applying them to plain 2.6.30?

Hello Jan,

I assume Novell did a lot of testing/patching/bugfixing for SLES11 2.6.27 Xen kernel. Do these OpenSUSE Xen patches contain the fixes from SLES11?

-- Pasi

#6 lore raw
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Pasi Kärkkäinen<[email protected]> 06.07.09 13:02 >>>

I assume Novell did a lot of testing/patching/bugfixing for SLES11 2.6.27 Xen kernel. Do these OpenSUSE Xen patches contain the fixes from SLES11?

Yes, OpenSuSE and SLE11 have been sharing the kernel approximately since the release of the first kernel maintenance update for SLE11.

Jan

#7 lore raw

Hi,

Quoted 8 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line

Pasi Kärkkäinen<[email protected]> 06.07.09 13:02 >>>

I assume Novell did a lot of testing/patching/bugfixing for SLES11 2.6.27 Xen kernel. Do these OpenSUSE Xen patches contain the fixes from SLES11?

Yes, OpenSuSE and SLE11 have been sharing the kernel approximately since the release of the first kernel maintenance update for SLE11.

Jan

Is there a consensus now on where the 2.6.30-xen tree is going to live? I saw a mention of space on xenbits, but did not see a consensus. Did I miss one in the thread?

No rush or anything, I'm just catching up to the thread and feel as if I missed a reply or two.

Cheers,
--Tim

#13 lore raw
In reply to Andrew Lyon

2009/7/2 Andrew Lyon <[email protected]>:

Quoted 7 lines

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/list
, if you are not using Gentoo simply apply the patches in numeric order.

Quoted 6 lines

Some notes:

both dom0 and domU require CONFIG_SPARSE_IRQ=y and CONFIG_HOTPLUG=y 64 bit dom0/domU requires CONFIG_IA32_EMULATION=y

Andy

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'

when CONFIG_SPARSE_IRQ is not set is due to a missing #ifdef change a couple of lines earlier. The commit d52a61c04c6c0814ca270a088feedb126436598e altered the kernel_stat.irqs dependency to CONFIG_GENERIC_HARDIRQS.

#10 lore raw
In reply to a message not in the archive
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