mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
1b808d5be0
commit
59f7d6743c
4 changed files with 11 additions and 12 deletions
|
@ -607,11 +607,10 @@ static int vfio_base_device_init(VFIODevice *vbasedev)
|
|||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
ret = vfio_get_device(group, vbasedev->name, vbasedev);
|
||||
ret = vfio_get_device(group, vbasedev->name, vbasedev, &err);
|
||||
if (ret) {
|
||||
error_report("vfio: failed to get device %s", vbasedev->name);
|
||||
vfio_put_group(group);
|
||||
return ret;
|
||||
goto error;
|
||||
}
|
||||
|
||||
ret = vfio_populate_device(vbasedev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue