vfio: Fix broken EEH
commit6e7ee9862be4e143f9aabdd792d0b9fc92b842a3
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 15 Jun 2016 04:28:27 +0000 (15 14:28 +1000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 18:23:19 +0000 (5 13:23 -0500)
treeff6f5c9526918ff19e66985e72926e0dd53f576e
parent7ff5dc445d6bb392f9fb3d0a254ef9071304780b
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>
(cherry picked from commit d917e88d85a147a99f38a62a4f95cac21e366d51)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/vfio/common.c