vfio: Fix broken EEH
commitd917e88d85a147a99f38a62a4f95cac21e366d51
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 15 Jun 2016 04:28:27 +0000 (15 14:28 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Jun 2016 05:59:18 +0000 (17 15:59 +1000)
tree8b58a292aa7ff8c805376bfb7e74d91dc6987676
parent35b5066ea7c2c3051fbc5a24b3d463b9800063e2
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>
hw/vfio/common.c