2.6.30 dom0 Xen patches
Fix patch set before applying.
Boris.
--- On Fri, 7/17/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Boris Derzhavets" <[email protected]>
Cc: "Andrew Lyon" <[email protected]>, "Xen-devel" <[email protected]>, "Kris Shannon" <[email protected]>
Date: Friday, July 17, 2009, 6:38 AM
Quoted 3 lines · Boris Derzhavets
Sorry, i've got your point - just one more *.patch1 file. That's it.
Yep, that's what I meant :)
Then you can just attach the additional patch to an email and Andy can then later add it as a part of his patchset..
-- Pasi
Quoted 93 lines
Thanks.
Boris.--- On Fri, 7/17/09, Pasi Kärkkäinen <[email protected]> wrote:
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Boris Derzhavets" <[email protected]>
Cc: "Andrew Lyon" <[email protected]>, "Xen-devel" <[email protected]>, "Kris Shannon" <[email protected]>
Date: Friday, July 17, 2009, 6:06 AMQuoted 22 lines · Boris Derzhavets
I made two replacements
CONFIG_SPARSE_IRQbyCONFIG_GENERIC_HARDIRQS.****************************************************
In 60035_xen3-patch-2.6.29.patch1 line 11568
****************************************************(quoted diff) +3
-0+#ifdef CONFIG_SPARSE_IRQ + irq_to_desc(irq)->kstat_irqs[cpu] = 0; +#elsekstat_cpu(cpu).irqs[irq] = 0;
****************************************************
In 60036_xen3-patch-2.6.30.patch1 line 18283
****************************************************(quoted diff) +7
-0+#ifdef CONFIG_SPARSE_IRQ +int __init arch_probe_nr_irqs(void) +{ + int nr; + + if (nr_irqs > (NR_VECTORS * nr_cpu_ids)) + nr_irqs = NR_VECTORS * nr_cpu_ids;Quoted 6 lines
To fix this issue. But, i don't know how to rebuild Andy's patch set based on your commit.
Boris.
P.S. I haven't heard from Andy for a while.Boris: Just generate a new (additional) patch that fixes the problem with
CONFIG_SPARSE_IRQ. Much easier for other people to apply it then, and get it right.. also no need to explain many times what to change and where..-- Pasi
Quoted 39 lines
--- On Thu, 7/16/09, Kris Shannon <[email protected]> wrote:
From: Kris Shannon <[email protected]>
Subject: Re: [Xen-devel] 2.6.30 dom0 Xen patches
To: "Andrew Lyon" <[email protected]>
Cc: "Xen-devel" <[email protected]>
Date: Thursday, July 16, 2009, 6:56 PM2009/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=yandCONFIG_HOTPLUG=y64 bit dom0/domU requiresCONFIG_IA32_EMULATION=yAndy
The error:
drivers/xen/core/evtchn.c: In function 'unbind_from_irq':drivers/xen/core/evtchn.c:641: error: 'structkernel_stat' has no member named 'irqs'when
CONFIG_SPARSE_IRQis not set is due to a missing #ifdef change a couple of lines earlier. The commitd52a61c04c6c0814ca270a088feedb126436598ealtered the kernel_stat.irqs dependency toCONFIG_GENERIC_HARDIRQS._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develQuoted 5 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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