summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorEric Auger2016-10-17 18:57:59 +0200
committerAlex Williamson2016-10-17 18:57:59 +0200
commit1b808d5be070e9d07e5d0e5b825a31a0cf87001d (patch)
treef333c493936265c1d659f8cf771ad619110a5f89 /include/hw
parentvfio: Pass an Error object to vfio_connect_container (diff)
downloadqemu-1b808d5be070e9d07e5d0e5b825a31a0cf87001d.tar.gz
qemu-1b808d5be070e9d07e5d0e5b825a31a0cf87001d.tar.xz
qemu-1b808d5be070e9d07e5d0e5b825a31a0cf87001d.zip
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>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/vfio/vfio-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h
index b26b6cf753..286fa31290 100644
--- a/include/hw/vfio/vfio-common.h
+++ b/include/hw/vfio/vfio-common.h
@@ -155,7 +155,7 @@ void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled);
void vfio_region_exit(VFIORegion *region);
void vfio_region_finalize(VFIORegion *region);
void vfio_reset_handler(void *opaque);
-VFIOGroup *vfio_get_group(int groupid, AddressSpace *as);
+VFIOGroup *vfio_get_group(int groupid, AddressSpace *as, Error **errp);
void vfio_put_group(VFIOGroup *group);
int vfio_get_device(VFIOGroup *group, const char *name,
VFIODevice *vbasedev);