qemu-e2k/hw/pci-bridge
Cao jin 1108b2f8a9 pci: Convert msi_init() to Error and fix callers to check it
msi_init() reports errors with error_report(), which is wrong
when it's used in realize().

Fix by converting it to Error.

Fix its callers to handle failure instead of ignoring it.

For those callers who don't handle the failure, it might happen:
when user want msi on, but he doesn't get what he want because of
msi_init fails silently.

cc: Gerd Hoffmann <kraxel@redhat.com>
cc: John Snow <jsnow@redhat.com>
cc: Dmitry Fleytman <dmitry@daynix.com>
cc: Jason Wang <jasowang@redhat.com>
cc: Michael S. Tsirkin <mst@redhat.com>
cc: Hannes Reinecke <hare@suse.de>
cc: Paolo Bonzini <pbonzini@redhat.com>
cc: Alex Williamson <alex.williamson@redhat.com>
cc: Markus Armbruster <armbru@redhat.com>
cc: Marcel Apfelbaum <marcel@redhat.com>

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
2016-07-05 13:14:41 +03:00
..
dec.c dec: convert to realize() 2016-02-16 12:05:18 +02:00
dec.h
i82801b11.c Migration: Add i82801b11 migration data 2016-04-07 19:57:33 +03:00
ioh3420.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
ioh3420.h
Makefile.objs
pci_bridge_dev.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
pci_expander_bridge.c q35: allow dynamic sysbus 2016-07-04 14:50:01 +03:00
xio3130_downstream.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
xio3130_downstream.h
xio3130_upstream.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
xio3130_upstream.h