vfio/platform: Pass an error object to vfio_base_device_init
commit9bdbfbd50dfcc23252224112e8cbb720a8535d40
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:58:01 +0000 (17 10:58 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:58:01 +0000 (17 10:58 -0600)
treeb50cf998614a9e062a9d6261bb9bb9f1899835ce
parent0d84f47bff2f98d0cea5fb27e9b62225ccebd70a
vfio/platform: Pass an error object to vfio_base_device_init

This patch propagates errors encountered during vfio_base_device_init
up to the realize function.

In case the host value is not set or badly formed we now report an
error.

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/platform.c