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

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

We now format an error in case of reading failure for
- the MSIX flags
- the MSIX table,
- the MSIX PBA.

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