From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSl1U-0004Yp-C8 for qemu-devel@nongnu.org; Fri, 11 May 2012 04:16:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSl1N-0003pC-1I for qemu-devel@nongnu.org; Fri, 11 May 2012 04:16:23 -0400 Message-ID: <4FACCACB.1010109@redhat.com> Date: Fri, 11 May 2012 10:16:11 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 03/10] xhci: Fix reset of MSI function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-stable@nongnu.org, qemu-devel , "Michael S. Tsirkin" On 05/10/12 22:08, Jan Kiszka wrote: > Call msi_reset on device reset as still required by the core. Note: msi on xhci is disabled by default (and also broken as far I know). > +static void xhci_reset(void *opaque) > +{ > + XHCIState *xhci = opaque; > + if (xhci->msi) > + msi_reset(&xhci->pci_dev); } > + xhci_reset_full(xhci); > +} And can't we let the pci core handle it so we don't need ugly wrappers like this? cheers, Gerd