[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v8 20/28] xen/arm: ITS: Add virtual ITS availability check helper
From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx> Introduce vgic_is_lpi_supported() helper function to know virtual ITS availability for a domain Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx> --- v8: - Dropped its_enabled field v7: - its_enabled field is added to vgic structure --- xen/arch/arm/vgic.c | 5 +++++ xen/include/asm-arm/vgic.h | 1 + 2 files changed, 6 insertions(+) diff --git a/xen/arch/arm/vgic.c b/xen/arch/arm/vgic.c index f813931..2d89b7c 100644 --- a/xen/arch/arm/vgic.c +++ b/xen/arch/arm/vgic.c @@ -62,6 +62,11 @@ struct vgic_irq_rank *vgic_rank_irq(struct vcpu *v, unsigned int irq) return vgic_get_rank(v, rank); } +bool_t vgic_is_lpi_supported(struct domain *d) +{ + return (d->arch.vgic.nr_lpis != 0); +} + static void vgic_init_pending_irq(struct pending_irq *p, unsigned int virq) { INIT_LIST_HEAD(&p->inflight); diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h index f13adfd..35d06b8 100644 --- a/xen/include/asm-arm/vgic.h +++ b/xen/include/asm-arm/vgic.h @@ -311,6 +311,7 @@ extern int vgic_emulate(struct cpu_user_regs *regs, union hsr hsr); extern void vgic_disable_irqs(struct vcpu *v, uint32_t r, int n); extern void vgic_enable_irqs(struct vcpu *v, uint32_t r, int n); extern void register_vgic_ops(struct domain *d, const struct vgic_ops *ops); +extern bool_t vgic_is_lpi_supported(struct domain *d); int vgic_v2_init(struct domain *d); int vgic_v3_init(struct domain *d); -- 1.7.9.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |