From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] msi: Avoid uninitialized msi descriptors Date: Wed, 11 Aug 2010 18:36:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dante Cinco , "wei.wang2@amd.com" , Xen-devel List-Id: xen-devel@lists.xenproject.org On 11/08/2010 18:09, "Dante Cinco" wrote: > I'm glad that somebody who is familiar with MSI has resolved this > problem although I haven't applied and verified the proposed patch yet > on my system. I posted the Xen crash I experienced related to this > issue on xen-devel a couple of weeks ago (see link below) but wasn't > familiar enough with the MSI/MSI-X code to propose a solution other > than to back out changelist 21778. Let me know when you confirm. I backported 21778 for 4.0.1, perhaps in too much haste. If this is a good fix then I should backport it as well. Thanks, Keir > http://old.nabble.com/Re:-(XEN)-RIP:-e008:-%3Cffff82c48015564b%3E---write= _msi_ > msg%2B0x2b-0x150-p29301832.html >=20 > Dante >=20 >=20 > -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Wei Wang2 > Sent: Wednesday, August 11, 2010 6:43 AM > To: xen-devel@lists.xensource.com > Subject: [Xen-devel] [PATCH] msi: Avoid uninitialized msi descriptors >=20 > Hi, > When __pci_enable_msix() returns early, output parameter (struct msi_desc > **desc) will not be initialized. On my machine, a Broadcom BCM5709 > nic has both MSI and MSIX capability blocks and when guest tries to > enable msix interrupts but __pci_enable_msix() returns early for > encountering a msi block, the whole system will crash for fatal page > fault immediately. >=20 > Thanks, > Wei >=20 > Signed-off-by: Wei Wang > -- > AMD GmbH, Germany > Operating System Research Center >=20 > Legal Information: > Advanced Micro Devices GmbH > Karl-Hammerschmidt-Str. 34 > 85609 Dornach b. M=FCnchen >=20 > Gesch=E4ftsf=FChrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni > Sitz: Dornach, Gemeinde Aschheim, Landkreis M=FCnchen Registergericht > M=FCnchen, HRB Nr. 43632 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel