mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
01905f58f1
commit
1b808d5be0
4 changed files with 22 additions and 18 deletions
|
@ -2563,9 +2563,8 @@ static int vfio_initfn(PCIDevice *pdev)
|
|||
|
||||
trace_vfio_initfn(vdev->vbasedev.name, groupid);
|
||||
|
||||
group = vfio_get_group(groupid, pci_device_iommu_address_space(pdev));
|
||||
group = vfio_get_group(groupid, pci_device_iommu_address_space(pdev), &err);
|
||||
if (!group) {
|
||||
error_setg(&err, "failed to get group %d", groupid);
|
||||
ret = -ENOENT;
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue