mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/arm: Zeroed vgic ranks during the initialization
vgic_rank contains data which inform the guest if an IRQ is enabled/actived/pending... The structure must be zeroed otherwise the guest can retrieve wrong GIC state. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
f02a88f607
commit
cea19463ef
1 file changed
+1
-1
+1
-1
@@ -88,7 +88,7 @@ int domain_vgic_init(struct domain *d)
|
||||
d->arch.vgic.nr_lines = 0; /* We don't need SPIs for the guest */
|
||||
|
||||
d->arch.vgic.shared_irqs =
|
||||
xmalloc_array(struct vgic_irq_rank, DOMAIN_NR_RANKS(d));
|
||||
xzalloc_array(struct vgic_irq_rank, DOMAIN_NR_RANKS(d));
|
||||
d->arch.vgic.pending_irqs =
|
||||
xzalloc_array(struct pending_irq, d->arch.vgic.nr_lines);
|
||||
for (i=0; i<d->arch.vgic.nr_lines; i++)
|
||||
|
||||