vfio: Turn the container error into an Error handle
commitd7d8783647841a4c18349fe60d0d99e0de865ce5
authorEric Auger <eric.auger@redhat.com>
Tue, 24 Sep 2019 08:25:16 +0000 (24 10:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Oct 2019 16:49:18 +0000 (4 18:49 +0200)
tree92d961b711aa486a03168ad9bfc4a854930d3f03
parente900135dcfb676a4019dc206395e02db5d1de0d6
vfio: Turn the container error into an Error handle

The container error integer field is currently used to store
the first error potentially encountered during any
vfio_listener_region_add() call. However this fails to propagate
detailed error messages up to the vfio_connect_container caller.
Instead of using an integer, let's use an Error handle.

Messages are slightly reworded to accomodate the propagation.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/common.c
hw/vfio/spapr.c
include/hw/vfio/vfio-common.h