From: Cao jin <caoj.fnst@cn.fujitsu.com>
To: qemu-devel@nongnu.org
Cc: mst@redhat.com, jasowang@redhat.com, armbru@redhat.com,
marcel@redhat.com, alex.williamson@redhat.com, hare@suse.de,
dmitry@daynix.com, pbonzini@redhat.com, jsnow@redhat.com,
kraxel@redhat.com
Subject: [Qemu-devel] [PATCH v4 0/5] Add param Error ** for msi_init()
Date: Tue, 5 Apr 2016 19:26:37 +0800 [thread overview]
Message-ID: <1459855602-16727-1-git-send-email-caoj.fnst@cn.fujitsu.com> (raw)
v4 changelog:
1. split into 5 patches, according to comments (Marcel)
2. fix to other minor comments (Marcel)
3. most devices have msi/msix(except vmxnet3 & pvscsi) property as a switch,
if it has and is switched on, then msi_init() failure should results in
return directly. So in this version, mptsas is updated
The affected devices:
1. intel hd audio: move msi_init() above, save the strength to free the
MemoryRegion when it fails.
2. usb-xhci: move msi_init() above, save the strength to free the MemoryRegion
when it fails.
3. ich9 ahci: it is a on-board device created during machine initialization,
when it fail, qemu will exit, so, no need to free resource manually.
4. megasas_scsi: move msi_init() above, save the strength to free the
MemoryRegion when it fails.
5. mptsas: Move msi_init() above, save the strength to free the MemoryRegion
when it fails.
6. pci_bridge_dev/ioh3420/xio3130_downstream/xio3130_upstream: catch error
and report it right there.
7. vmxnet3: move msi_init() above. Remove the unecessary vmxnet3_init_msi().
When msi_init() fail, it will use INTx, so msi_init()`s failure should not
break the realize. Just free the error object silently.
8. pvscsi: when msi_init fail, it will use INTx. so msi_init failure should not
break the realize. Report the error when msi_init fail.
9. vfio-pci: it ignores the config space corruption error, so,
catch & report it right there.
Cao jin (5):
fix some coding style problems
change pvscsi_init_msi() type to void
megasas: bugfix
mptsas: change .realize function name
Add param Error ** for msi_init()
hw/audio/intel-hda.c | 11 +++++++---
hw/ide/ich.c | 2 +-
hw/net/vmxnet3.c | 43 +++++++++++++++-----------------------
hw/pci-bridge/ioh3420.c | 11 ++++++++--
hw/pci-bridge/pci_bridge_dev.c | 8 ++++++-
hw/pci-bridge/xio3130_downstream.c | 10 +++++++--
hw/pci-bridge/xio3130_upstream.c | 7 ++++++-
hw/pci/msi.c | 22 +++++++++++++++++--
hw/scsi/megasas.c | 12 +++++++----
hw/scsi/mptsas.c | 19 ++++++++++-------
hw/scsi/vmw_pvscsi.c | 10 +++++----
hw/usb/hcd-xhci.c | 10 ++++++---
hw/vfio/pci.c | 6 ++++--
include/hw/pci/msi.h | 3 ++-
14 files changed, 115 insertions(+), 59 deletions(-)
--
2.1.0
next reply other threads:[~2016-04-05 11:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 11:26 Cao jin [this message]
2016-04-05 11:26 ` [Qemu-devel] [PATCH v4 1/5] fix some coding style problems Cao jin
2016-04-08 6:29 ` Markus Armbruster
2016-04-09 8:49 ` Cao jin
2016-04-05 11:26 ` [Qemu-devel] [PATCH v4 2/5] change pvscsi_init_msi() type to void Cao jin
2016-04-06 7:19 ` Dmitry Fleytman
2016-04-10 7:41 ` Marcel Apfelbaum
2016-04-05 11:26 ` [Qemu-devel] [PATCH v4 3/5] megasas: bugfix Cao jin
2016-04-08 7:16 ` Markus Armbruster
2016-04-09 13:07 ` Cao jin
2016-04-10 7:40 ` Marcel Apfelbaum
2016-04-05 11:26 ` [Qemu-devel] [PATCH v4 4/5] mptsas: change .realize function name Cao jin
2016-04-10 7:43 ` Marcel Apfelbaum
2016-04-05 11:26 ` [Qemu-devel] [PATCH v4 5/5] Add param Error ** for msi_init() Cao jin
2016-04-08 8:44 ` Markus Armbruster
2016-04-09 12:19 ` Cao jin
2016-04-09 13:00 ` Cao jin
2016-04-10 8:20 ` Marcel Apfelbaum
2016-04-10 9:38 ` Cao jin
2016-04-11 10:00 ` Marcel Apfelbaum
2016-04-11 12:02 ` Cao jin
2016-04-12 11:50 ` Markus Armbruster
2016-04-29 9:28 ` Cao jin
2016-04-29 12:46 ` Markus Armbruster
2016-04-12 8:34 ` Markus Armbruster
2016-04-05 11:27 ` [Qemu-devel] [PATCH v4 0/5] " Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459855602-16727-1-git-send-email-caoj.fnst@cn.fujitsu.com \
--to=caoj.fnst@cn.fujitsu.com \
--cc=alex.williamson@redhat.com \
--cc=armbru@redhat.com \
--cc=dmitry@daynix.com \
--cc=hare@suse.de \
--cc=jasowang@redhat.com \
--cc=jsnow@redhat.com \
--cc=kraxel@redhat.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).