]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/pci: Pass an error object to vfio_intx_enable
authorEric Auger <eric.auger@redhat.com>
Mon, 17 Oct 2016 16:57:58 +0000 (10:57 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 17 Oct 2016 16:57:58 +0000 (10:57 -0600)
commit7dfb34247e231e1f317e3558af96c90f06fef8a5
tree730ab82302c6d49e7ec390d1880501306bee318d
parent008d0e2d7bb1bb8c0393d5cc7501a05c2bc4ed81
vfio/pci: Pass an error object to vfio_intx_enable

Pass an error object to prepare for migration to VFIO-PCI realize.

The error object is propagated down to vfio_intx_enable_kvm().

The three other callers, vfio_intx_enable_kvm(), vfio_msi_disable_common()
and vfio_pci_post_reset() do not propagate the error and simply call
error_reportf_err() with the ERR_PREFIX formatting.

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