Re: [Xen-devel] [PATCH v2 2/4] arm: store vcpu id in struct irq_pending

2016-12-22 Thread Andrew Cooper
On 22/12/16 02:15, Stefano Stabellini wrote: diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h index 467333c..fde5b32 100644 --- a/xen/include/asm-arm/vgic.h +++ b/xen/include/asm-arm/vgic.h @@ -72,6 +72,8 @@ struct pending_irq #define GIC_INVALID_LR (uint8_t)~0

[Xen-devel] [PATCH v2 2/4] arm: store vcpu id in struct irq_pending

2016-12-21 Thread Stefano Stabellini
We currently store the LR register number for every irq in irq_pending, but we don't store the vcpu id. Thus, we know in which LR they are, but we don't know the LR of which cpu. Fix this gap by adding a vcpu field in struct pending_irq. Use the bytes that are currently used for padding within the