qemu/hw/ide
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
..
ahci.c ide: move headers to include folder 2016-06-29 14:03:45 +02:00
atapi.c atapi: Switch to byte-based block access 2016-05-12 15:22:09 +02:00
cmd646.c ide: Clean up includes 2016-01-29 15:07:23 +00:00
core.c dma-helpers: change BlockBackend to opaque value in DMAIOFunc 2016-05-25 19:04:11 +02:00
ich.c pci: Convert msi_init() to Error and fix callers to check it 2016-07-05 13:14:41 +03:00
isa.c ide: Clean up includes 2016-01-29 15:07:23 +00:00
macio.c macio: Use blk_drain instead of blk_drain_all 2016-06-27 14:28:31 -04:00
Makefile.objs
microdrive.c ide: Clean up includes 2016-01-29 15:07:23 +00:00
mmio.c ide: Clean up includes 2016-01-29 15:07:23 +00:00
pci.c ide: don't lose pending dma state 2016-04-12 16:47:52 -04:00
piix.c xen: Fix IDE unplug 2016-04-12 16:47:52 -04:00
qdev.c error: Remove NULL checks on error_propagate() calls 2016-06-20 16:38:13 +02:00
via.c ide: Clean up includes 2016-01-29 15:07:23 +00:00