[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [XEN PATCH v3 09/11] xen: arm: gic: supporting routing a PPI to the current vcpu.



On Friday, November 15, 2019 3:11 PM, Stewart Hildebrand wrote:
>diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
>index 75921724dd..982afaadbd 100644
>--- a/xen/arch/arm/gic.c
>+++ b/xen/arch/arm/gic.c
>@@ -92,8 +92,7 @@ void gic_save_state(struct vcpu *v)
> void gic_save_and_mask_hwppi(struct vcpu *v, const unsigned virq,
>                              struct hwppi_state *s)
> {
>-    struct pending_irq *p = irq_to_pending(v, virq);
>-    struct irq_desc *desc = p->desc;
>+    struct irq_desc *desc = vgic_get_hw_irq_desc(NULL, v, virq);
>
>     spin_lock(&desc->lock);
>
>@@ -123,7 +122,6 @@ void gic_restore_hwppi(struct vcpu *v,
>                        const unsigned virq,
>                        const struct hwppi_state *s)
> {
>-    struct pending_irq *p = irq_to_pending(v, virq);
>     struct irq_desc *desc = irq_to_desc(s->irq);
>
>     spin_lock(&desc->lock);
>@@ -131,7 +129,8 @@ void gic_restore_hwppi(struct vcpu *v,
>     ASSERT(virq >= 16 && virq < 32);
>     ASSERT(!is_idle_vcpu(v));
>
>-    p->desc = desc; /* Migrate to new physical processor */
>+    /* Migrate to new physical processor */
>+    vgic_connect_hw_irq(v->domain, v, virq, desc, true);
>
>     irq_set_virq(desc, virq);
>

This snippet was intended to be rolled into [XEN PATCH v3 05/11] xen:
arm: add interfaces to save/restore the state of a PPI.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.