xen/arm: Fix return value when write is ignored in VGIC
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.
Signed-off-by Anthony PERARD <[email protected]>
--- xen/arch/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/vgic.c +1 -1
@@ -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
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.
Signed-off-by Anthony PERARD <[email protected]>
Acked-by Ian Campbell <[email protected]>
Quoted 17 lines
--- xen/arch/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/arch/arm/vgic.c +1
-1@@ -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)
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.
Signed-off-by Anthony PERARD <[email protected]>Acked-by Ian Campbell <[email protected]>
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.