diff options
author | Eric Auger | 2016-10-17 18:58:00 +0200 |
---|---|---|
committer | Alex Williamson | 2016-10-17 18:58:00 +0200 |
commit | 59f7d6743ccbe17587e491dc5d79cad8bf31f76a (patch) | |
tree | 3604c71c03d57f9db444221bfa530756912fbeb1 /hw/vfio/pci.c | |
parent | vfio: Pass an error object to vfio_get_group (diff) | |
download | qemu-59f7d6743ccbe17587e491dc5d79cad8bf31f76a.tar.gz qemu-59f7d6743ccbe17587e491dc5d79cad8bf31f76a.tar.xz qemu-59f7d6743ccbe17587e491dc5d79cad8bf31f76a.zip |
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>
Diffstat (limited to 'hw/vfio/pci.c')
-rw-r--r-- | hw/vfio/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index fdb0616f8d..0ba071172b 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2578,9 +2578,8 @@ static int vfio_initfn(PCIDevice *pdev) } } - ret = vfio_get_device(group, vdev->vbasedev.name, &vdev->vbasedev); + ret = vfio_get_device(group, vdev->vbasedev.name, &vdev->vbasedev, &err); if (ret) { - error_setg_errno(&err, -ret, "failed to get device"); vfio_put_group(group); goto error; } |