qemu-e2k/hw/vfio
Eric Auger 7ef165b9a8 vfio/pci: Pass an error object to vfio_add_capabilities
Pass an error object to prepare for migration to VFIO-PCI realize.
The error is cascaded downto vfio_add_std_cap and then vfio_msi(x)_setup,
vfio_setup_pcie_cap.

vfio_add_ext_cap does not return anything else than 0 so let's transform
it into a void function.

Also use pci_add_capability2 which takes an error object.

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>
2016-10-17 10:57:58 -06:00
..
Makefile.objs vfio: spapr: Add DMA memory preregistering (SPAPR IOMMU v2) 2016-07-05 14:30:54 +10:00
amd-xgbe.c all: Clean up includes 2016-02-23 12:43:05 +00:00
calxeda-xgmac.c hw/vfio: Clean up includes 2016-01-29 15:07:24 +00:00
common.c memory: introduce IOMMUNotifier and its caps 2016-09-27 08:59:16 +02:00
pci-quirks.c vfio/pci: Pass an error object to vfio_populate_vga 2016-10-17 10:57:57 -06:00
pci.c vfio/pci: Pass an error object to vfio_add_capabilities 2016-10-17 10:57:58 -06:00
pci.h vfio/pci: Pass an error object to vfio_populate_vga 2016-10-17 10:57:57 -06:00
platform.c vfio: Use error_report() instead of error_printf() for errors 2016-08-08 09:01:18 +02:00
spapr.c vfio/spapr: Remove stale ioctl() call 2016-07-18 10:40:27 +10:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00