diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2016-06-15 14:28:27 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-06-17 15:59:18 +1000 |
commit | d917e88d85a147a99f38a62a4f95cac21e366d51 (patch) | |
tree | 8b58a292aa7ff8c805376bfb7e74d91dc6987676 /hw/vfio | |
parent | 35b5066ea7c2c3051fbc5a24b3d463b9800063e2 (diff) | |
download | qemu-d917e88d85a147a99f38a62a4f95cac21e366d51.zip qemu-d917e88d85a147a99f38a62a4f95cac21e366d51.tar.gz qemu-d917e88d85a147a99f38a62a4f95cac21e366d51.tar.bz2 |
vfio: Fix broken EEH
vfio_eeh_container_op() is the backend that communicates with
host kernel to support EEH functionality in QEMU. However, the
functon should return the value from host kernel instead of 0
unconditionally.
dwg: Specifically the problem occurs for the handful of EEH
sub-operations which can return a non-zero, non-error result.
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
[dwg: clarification to commit message]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/vfio')
-rw-r--r-- | hw/vfio/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 5ff5e92..1898f1f 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -1257,7 +1257,7 @@ static int vfio_eeh_container_op(VFIOContainer *container, uint32_t op) return -errno; } - return 0; + return ret; } static VFIOContainer *vfio_eeh_as_container(AddressSpace *as) |