vfio/pci: Pass an error object to vfio_populate_device
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:57:57 +0000 (10:57 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:57:57 +0000 (10:57 -0600)
commit2312d907ddcdeffa45350e5960be46d6105b8ec2
tree2fc52f667a490c1cb0c95c4f209ea7420ca7088c
parentcde4279baa246fdfadb06d021e3b8d0a0234879f
vfio/pci: Pass an error object to vfio_populate_device

Pass an error object to prepare for migration to VFIO-PCI realize.
The returned value will be removed later on.

The case where error recovery cannot be enabled is not converted into
an error object but directly reported through error_report, as before.
Populating an error instead would cause the future realize function to
fail, which is not wanted.

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