From: "Jan Beulich" Subject: [PATCH] Re: Xen panics with 2.6.32.11 Date: Mon, 12 Apr 2010 15:07:07 +0100 Message-ID: <4BC3452B0200007800039C04@vpn.id2.novell.com> References: <4BBBB1EC.1030403@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4BBBB1EC.1030403@goop.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Jeremy Fitzhardinge Cc: Bastian Blank , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> Jeremy Fitzhardinge 07.04.10 00:13 >>> >Current xen-unstable crashes when booting xen/stable-2.6.32.x=20 >(2.6.32.11). I haven't >verified it yet, but I guess this is Bastian's patch (537451477469). = Or=20 >could it be Jan's 4f796e29987c? Mine, plus the debug=3Dy one (at least I tested it before that one went in, which is why I didn't notice any problem). Fix below. Signed-off-by: Jan Beulich --- a/xen/arch/x86/io_apic.c +++ b/xen/arch/x86/io_apic.c @@ -2163,12 +2163,12 @@ int io_apic_set_pci_routing (int ioapic, io_apic_write(ioapic, 0x11+2*pin, *(((int *)&entry)+1)); io_apic_write(ioapic, 0x10+2*pin, *(((int *)&entry)+0)); set_native_irq_info(irq, TARGET_CPUS); - spin_unlock_irqrestore(&ioapic_lock, flags); + spin_unlock(&ioapic_lock); =20 spin_lock(&desc->lock); if (!(desc->status & (IRQ_DISABLED | IRQ_GUEST))) desc->handler->startup(irq); - spin_unlock(&desc->lock); + spin_unlock_irqrestore(&desc->lock, flags); =20 return 0; }