[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH] vfio: Fix broken EEH
From: |
Gavin Shan |
Subject: |
[Qemu-ppc] [PATCH] vfio: Fix broken EEH |
Date: |
Wed, 15 Jun 2016 14:28:27 +1000 |
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.
Signed-off-by: Gavin Shan <address@hidden>
---
hw/vfio/common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index e51ed3a..e51db46 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -1258,7 +1258,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)
--
2.1.0
- [Qemu-ppc] [PATCH] vfio: Fix broken EEH,
Gavin Shan <=