vfio: Pass an error object to vfio_get_group
commit1b808d5be070e9d07e5d0e5b825a31a0cf87001d
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:57:59 +0000 (17 10:57 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:57:59 +0000 (17 10:57 -0600)
treef333c493936265c1d659f8cf771ad619110a5f89
parent01905f58f166646619c35a2ebfc3ca3ed4cad62d
vfio: Pass an error object to vfio_get_group

Pass an error object to prepare for migration to VFIO-PCI realize.

For the time being let's just simply report the error in
vfio platform's vfio_base_device_init(). A subsequent patch will
duly propagate the error up to vfio_platform_realize.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
hw/vfio/pci.c
hw/vfio/platform.c
include/hw/vfio/vfio-common.h