diff options
author | Eric Auger <eric.auger@redhat.com> | 2019-09-24 10:25:16 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-04 18:49:18 +0200 |
commit | d7d8783647841a4c18349fe60d0d99e0de865ce5 (patch) | |
tree | 92d961b711aa486a03168ad9bfc4a854930d3f03 /include | |
parent | e900135dcfb676a4019dc206395e02db5d1de0d6 (diff) | |
download | qemu-d7d8783647841a4c18349fe60d0d99e0de865ce5.zip qemu-d7d8783647841a4c18349fe60d0d99e0de865ce5.tar.gz qemu-d7d8783647841a4c18349fe60d0d99e0de865ce5.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 9107bd4..fd56420 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -71,7 +71,7 @@ typedef struct VFIOContainer { MemoryListener listener; MemoryListener prereg_listener; unsigned iommu_type; - int error; + Error *error; bool initialized; unsigned long pgsizes; QLIST_HEAD(, VFIOGuestIOMMU) giommu_list; |