From: "Jan Beulich" Subject: [PATCH] x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded Date: Tue, 08 Nov 2011 16:54:34 +0000 Message-ID: <4EB96CDA020000780005FAA0@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part1B34E1DA.0__=" 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@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part1B34E1DA.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The function must not blindly take the lock on IRQ descriptors. Signed-off-by: Jan Beulich --- a/xen/arch/x86/msi.c +++ b/xen/arch/x86/msi.c @@ -1076,6 +1076,9 @@ static void dump_msi(unsigned char key) unsigned long flags; char type; =20 + if ( !irq_desc_initialized(desc) ) + continue; + spin_lock_irqsave(&desc->lock, flags); =20 entry =3D desc->msi_desc; --=__Part1B34E1DA.0__= Content-Type: text/plain; name="x86-dump_msi-locking.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-dump_msi-locking.patch" x86/MSI: fix dump_msi() after c/s 24068:6928172f7ded=0A=0AThe function = must not blindly take the lock on IRQ descriptors.=0A=0ASigned-off-by: Jan = Beulich =0A=0A--- a/xen/arch/x86/msi.c=0A+++ b/xen/arch/= x86/msi.c=0A@@ -1076,6 +1076,9 @@ static void dump_msi(unsigned char = key)=0A unsigned long flags;=0A char type;=0A =0A+ = if ( !irq_desc_initialized(desc) )=0A+ continue;=0A+=0A = spin_lock_irqsave(&desc->lock, flags);=0A =0A entry =3D desc->msi_d= esc;=0A --=__Part1B34E1DA.0__= 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 --=__Part1B34E1DA.0__=--