xen/arm: Use AFF1 when translating ICC_SGI1R_EL1 to cpumask
authorChen Baozi <baozich@gmail.com>
Tue, 30 Jun 2015 08:00:18 +0000 (16:00 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Jul 2015 10:11:27 +0000 (11:11 +0100)
commitd79ddf72454c1cadc7921c1b06b9322290e6610c
tree06af9308db362f901a4682c9d77e533391c48778
parentbc5deb5930e7207e386999537512f0c737219263
xen/arm: Use AFF1 when translating ICC_SGI1R_EL1 to cpumask

The old unsigned long type of vcpu_mask can only express 64 cpus at the
most, which might not be enough for the guest which used vGICv3. We
introduce a new struct sgi_target for the target cpu list of SGI, which
holds the affinity path information (only level 1 at the moment). For
GICv2 that has no affinity level, we can just set the corresponding
fields to be 0.

Signed-off-by: Chen Baozi <baozich@gmail.com>
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic-v3.c
xen/arch/arm/vgic.c
xen/include/asm-arm/gic_v3_defs.h
xen/include/asm-arm/vgic.h