Skip to contentSkip to conversation

xen/arm: Fix return value when write is ignored in VGIC

PATCH In review Julien Grall 2 participants 3 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: Fix return value when write is ignored in VGIC

From: Anthony PERARD <[email protected]>

If a write is ignored, the function should return success.

Currently Xen will throw a data abort exception if the write in VGIC is ignored.

---
 xen/arch/arm/vgic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/vgic.c +1 -1
index 6cceb0f..6aaafe9 100644
@@ -592,7 +592,7 @@ bad_width:
 
 write_ignore:
     if ( dabt.size != 2 ) goto bad_width;
-    return 0;
+    return 1;
 }
 
 static int vgic_distr_mmio_check(struct vcpu *v, paddr_t addr)
Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Julien Grall

From: Anthony PERARD <[email protected]>

If a write is ignored, the function should return success.

Currently Xen will throw a data abort exception if the write in VGIC is ignored.

Quoted 17 lines
---
 xen/arch/arm/vgic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/vgic.c +1 -1
index 6cceb0f..6aaafe9 100644
@@ -592,7 +592,7 @@ bad_width:
 
 write_ignore:
     if ( dabt.size != 2 ) goto bad_width;
-    return 0;
+    return 1;
 }
 
 static int vgic_distr_mmio_check(struct vcpu *v, paddr_t addr)
#2 lore raw
Quoted 11 lines · Ian Campbell
Quoted 8 lines · Julien Grall

From: Anthony PERARD <[email protected]>

If a write is ignored, the function should return success.

Currently Xen will throw a data abort exception if the write in VGIC is ignored.

and applied.

It's not clear to me if under the DCO this should have had Julien's S-o-b too -- I think strictly speaking yes.

Ian.