vfio: Pass an error object to vfio_get_device
commit59f7d6743ccbe17587e491dc5d79cad8bf31f76a
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:58:00 +0000 (17 10:58 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:58:00 +0000 (17 10:58 -0600)
tree3604c71c03d57f9db444221bfa530756912fbeb1
parent1b808d5be070e9d07e5d0e5b825a31a0cf87001d
vfio: Pass an error object to vfio_get_device

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

In vfio platform vfio_base_device_init we currently just report the
error. Subsequent patches will propagate the error up to the realize
function.

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