All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RFC v2 0/2] MSI/MSIX: fix to catch and report errors
@ 2015-12-15 10:43 Cao jin
  2015-12-15 10:43 ` [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers Cao jin
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Cao jin @ 2015-12-15 10:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: kwolf, jiri, qemu-block, mst, jasowang, armbru, keith.busch,
	alex.williamson, sfeldma, kraxel, dmitry, pbonzini, jsnow, hare

msi_init() & msix_init() are supporting functions for PCI devices. catch the
errors they produced and report.

V2 changelog:
1. Modify as per Markus`s review
  a. Try to cleanup on function fail, as possible as I can.
  b. For .init() function, use error_report_err() and return non-zero value.
  c. For .realize(), propagate the error.
  d. Special case: TYPE_ICH9_AHCI, it is a on-board device initialized with
     machine init, so don`t bother to cleanup on failure, as process will exit
     anyway.

Cao jin (2):
  Add param Error** to msi_init() & modify the callers
  Add param Error** to msix_init() & modify the callers

 hw/audio/intel-hda.c               | 10 ++++-
 hw/block/nvme.c                    | 32 +++++++++-----
 hw/ide/ich.c                       |  2 +-
 hw/misc/ivshmem.c                  |  7 ++-
 hw/net/rocker/rocker.c             | 10 +++--
 hw/net/vmxnet3.c                   | 39 +++++++++++------
 hw/pci-bridge/ioh3420.c            |  7 ++-
 hw/pci-bridge/pci_bridge_dev.c     |  8 +++-
 hw/pci-bridge/xio3130_downstream.c |  8 +++-
 hw/pci-bridge/xio3130_upstream.c   |  8 +++-
 hw/pci/msi.c                       | 18 ++++++--
 hw/pci/msix.c                      | 20 ++++++---
 hw/scsi/megasas.c                  | 35 +++++++++++----
 hw/scsi/vmw_pvscsi.c               | 13 ++++--
 hw/usb/hcd-xhci.c                  | 88 +++++++++++++++++++++-----------------
 hw/vfio/pci.c                      | 28 ++++++------
 hw/virtio/virtio-bus.c             |  3 ++
 hw/virtio/virtio-pci.c             | 64 +++++++++++++--------------
 include/hw/pci/msi.h               |  4 +-
 include/hw/pci/msix.h              |  5 ++-
 20 files changed, 264 insertions(+), 145 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2016-03-23  9:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-15 10:43 [Qemu-devel] [PATCH RFC v2 0/2] MSI/MSIX: fix to catch and report errors Cao jin
2015-12-15 10:43 ` [Qemu-devel] [PATCH RFC v2 1/2] Add param Error** to msi_init() & modify the callers Cao jin
2016-03-02  9:13   ` Markus Armbruster
2016-03-03  3:56     ` Cao jin
2016-03-03 10:12     ` Marcel Apfelbaum
2016-03-03 10:45       ` Michael S. Tsirkin
2016-03-03 11:19         ` Marcel Apfelbaum
2016-03-03 11:33           ` Michael S. Tsirkin
2016-03-03 15:03             ` Markus Armbruster
2016-03-03 18:33               ` Michael S. Tsirkin
2016-03-04  8:42                 ` Markus Armbruster
2016-03-04  9:24                   ` Michael S. Tsirkin
2016-03-04 12:57                     ` Markus Armbruster
2016-03-04 13:10                       ` Michael S. Tsirkin
2016-03-03 14:24       ` Markus Armbruster
2016-03-23  4:04     ` Cao jin
2016-03-23  8:12       ` Markus Armbruster
2016-03-23  9:23         ` Cao jin
2015-12-15 10:43 ` [Qemu-devel] [PATCH v2 RFC 2/2] Add param Error** to msix_init() " Cao jin
2015-12-17  8:02 ` [Qemu-devel] [PATCH RFC v2 0/2] MSI/MSIX: fix to catch and report errors Cao jin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.