mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 08:34:20 +08:00
arm/arm64: KVM: Use appropriate define in VGIC reset code
We currently initialize the SGIs to be enabled in the VGIC code, but we use the VGIC_NR_PPIS define for this purpose, instead of the the more natural VGIC_NR_SGIS. Change this slightly confusing use of the defines. Note: This should have no functional change, as both names are defined to the number 16. Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
This commit is contained in:
parent
8bf9a701e1
commit
54723bb37f
@ -2128,8 +2128,12 @@ int vgic_init(struct kvm *kvm)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < dist->nr_irqs; i++) {
|
/*
|
||||||
if (i < VGIC_NR_PPIS)
|
* Enable all SGIs and configure all private IRQs as
|
||||||
|
* edge-triggered.
|
||||||
|
*/
|
||||||
|
for (i = 0; i < VGIC_NR_PRIVATE_IRQS; i++) {
|
||||||
|
if (i < VGIC_NR_SGIS)
|
||||||
vgic_bitmap_set_irq_val(&dist->irq_enabled,
|
vgic_bitmap_set_irq_val(&dist->irq_enabled,
|
||||||
vcpu->vcpu_id, i, 1);
|
vcpu->vcpu_id, i, 1);
|
||||||
if (i < VGIC_NR_PRIVATE_IRQS)
|
if (i < VGIC_NR_PRIVATE_IRQS)
|
||||||
|
Loading…
Reference in New Issue
Block a user