xen/arm: vgic: Override the group in lr everytime
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Mar 2018 20:30:09 +0000 (20:30 +0000)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Mar 2018 08:20:37 +0000 (08:20 +0000)
commit5fb8dd60d3d43b20dce4f4bc9091f94200709f93
tree245eb3b27929980099ceebc59f14bed36cf900b1
parent151b0cf14f8dca9b4632d4ad4d54dc2657704c58
xen/arm: vgic: Override the group in lr everytime

At the moment, write_lr is assuming the caller will set correctly the
group. However the group should always be 0 when the guest is using
vGICv2 and 1 for vGICv3. As the caller should not care about the group,
override it directly.

With that change, write_lr is now behaving like update_lr for the group.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/include/asm-arm/gic.h