Skip to contentSkip to conversation

vfio: Fix broken EEH

PATCH Alex Williamson 2 participants 2 messages Jun 15, 2016 – Jun 16, 2016 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Alex Williamson

author Acked-by
#3 lore raw
Quoted 7 lines · On Wed, 15 Jun 2016 15:03:15 +1000 David Gibson <[email protected]>…
Quoted 6 lines · David Gibson
Quoted 5 lines · Gavin Shan

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.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Applied to ppc-for-2.7, thanks.

Hang on, wait.. forgot I should get an ack for this from you, Alex. I'll keep it in my tree for now, unless you tell me you'd prefer to take it through yours.

Hmm, clearly this patch should have cc'd qemu-devel from the start. Go ahead and take it through your tree David.

Quoted 25 lines
Quoted 22 lines

We should probably look at applying this to the 2.6 stable branch as well.

Quoted 17 lines
---
 hw/vfio/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/common.c +1 -1
index e51ed3a..e51db46 100644
@@ -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)  
#4 lore raw
Quoted 12 lines · Alex Williamson
Quoted 9 lines · On Wed, 15 Jun 2016 15:03:15 +1000 David Gibson <[email protected]>…
Quoted 8 lines · David Gibson
Quoted 6 lines · Gavin Shan

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.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Applied to ppc-for-2.7, thanks.

Hang on, wait.. forgot I should get an ack for this from you, Alex. I'll keep it in my tree for now, unless you tell me you'd prefer to take it through yours.

Hmm, clearly this patch should have cc'd qemu-devel from the start.

Yeah. Gavin's not usually a qemu developer and I forgot a bunch of things in my 15s version of how-to-submit-qemu-patches.

Quoted 2 lines

Go
ahead and take it through your tree David.

Will do, thanks.

Quoted 29 lines
Quoted 25 lines
Quoted 22 lines

We should probably look at applying this to the 2.6 stable branch as well.

Quoted 17 lines
---
 hw/vfio/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/vfio/common.c +1 -1
index e51ed3a..e51db46 100644
@@ -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)  
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson