Received: from eggs.gnu.org ([2001:4830:134:3::10]:49631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c55kv-0003uL-RO for qemu-devel@nongnu.org; Fri, 11 Nov 2016 01:56:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c55ku-0007hN-Vc for qemu-devel@nongnu.org; Fri, 11 Nov 2016 01:56:09 -0500 References: <1478794177-29377-1-git-send-email-mst@redhat.com> <1478794177-29377-37-git-send-email-mst@redhat.com> From: Hannes Reinecke Message-ID: <4c991c21-a702-8e95-acd7-c8ed0f8a5a2f@suse.de> Date: Fri, 11 Nov 2016 07:55:59 +0100 MIME-Version: 1.0 In-Reply-To: <1478794177-29377-37-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 36/47] pci: Convert msix_init() to Error and fix callers to check it List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Peter Maydell , Cao jin , Jiri Pirko , Gerd Hoffmann , Dmitry Fleytman , Jason Wang , Paolo Bonzini , Alex Williamson , Markus Armbruster , Marcel Apfelbaum , Keith Busch , Kevin Wolf , Max Reitz , qemu-block@nongnu.org On 11/10/2016 05:14 PM, Michael S. Tsirkin wrote: > From: Cao jin >=20 > msix_init() reports errors with error_report(), which is wrong when > it's used in realize(). The same issue was fixed for msi_init() in > commit 1108b2f. >=20 > For some devices(like e1000e, vmxnet3) who won't fail because of > msix_init's failure, suppress the error report by passing NULL error ob= ject. >=20 > Bonus: add comment for msix_init. >=20 > CC: Jiri Pirko > CC: Gerd Hoffmann > CC: Dmitry Fleytman > CC: Jason Wang > CC: Michael S. Tsirkin > CC: Hannes Reinecke > CC: Paolo Bonzini > CC: Alex Williamson > CC: Markus Armbruster > CC: Marcel Apfelbaum >=20 > Reviewed-by: Markus Armbruster > Signed-off-by: Cao jin > Acked-by: Marcel Apfelbaum > Reviewed-by: Michael S. Tsirkin > Signed-off-by: Michael S. Tsirkin > --- > include/hw/pci/msix.h | 5 +++-- > hw/block/nvme.c | 5 ++++- > hw/misc/ivshmem.c | 8 ++++---- > hw/net/e1000e.c | 6 +++++- > hw/net/rocker/rocker.c | 7 ++++++- > hw/net/vmxnet3.c | 8 ++++++-- > hw/pci/msix.c | 34 +++++++++++++++++++++++++++++----- > hw/scsi/megasas.c | 5 ++++- > hw/usb/hcd-xhci.c | 13 ++++++++----- > hw/vfio/pci.c | 8 ++++++-- > hw/virtio/virtio-pci.c | 11 +++++------ > 11 files changed, 80 insertions(+), 30 deletions(-) >=20 Reviewed-by: Hannes Reinecke Cheers, Hannes --=20 Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: F. Imend=F6rffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG N=FCrnberg)