All of lore.kernel.org
 help / color / mirror / Atom feed
From: <vijayak@caviumnetworks.com>
To: Ian.Campbell@citrix.com, julien.grall@citrix.com,
	stefano.stabellini@eu.citrix.com, stefano.stabellini@citrix.com,
	tim@xen.org, xen-devel@lists.xen.org
Cc: Prasun.Kapoor@caviumnetworks.com,
	manish.jaggi@caviumnetworks.com,
	Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>,
	vijay.kilari@gmail.com
Subject: [PATCH v8 20/28] xen/arm: ITS: Add virtual ITS availability check helper
Date: Mon, 1 Feb 2016 14:56:30 +0530	[thread overview]
Message-ID: <1454318798-31913-21-git-send-email-vijayak@caviumnetworks.com> (raw)
In-Reply-To: <1454318798-31913-1-git-send-email-vijayak@caviumnetworks.com>

From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>

Introduce vgic_is_lpi_supported() helper function
to know virtual ITS availability for a domain

Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
---
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

  parent reply	other threads:[~2016-02-01  9:26 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01  9:26 [PATCH v8 00/28] Add ITS support vijayak
2016-02-01  9:26 ` [PATCH v8 01/28] xen/arm: Add bitmap_find_next_zero_area helper function vijayak
2016-02-01  9:26 ` [PATCH v8 02/28] xen: Add log2 functionality vijayak
2016-02-01  9:26 ` [PATCH v8 03/28] xen/arm: Set nr_cpu_ids to available number of cpus vijayak
2016-02-01  9:26 ` [PATCH v8 04/28] xen/arm: Rename NR_IRQs and vgic_num_irqs helper function vijayak
2016-02-01  9:26 ` [PATCH v8 05/28] xen/arm: ITS: Port ITS driver to Xen vijayak
2016-02-01  9:26 ` [PATCH v8 06/28] xen/arm: ITS: Add helper functions to manage its_devices vijayak
2016-02-01  9:26 ` [PATCH v8 07/28] xen/arm: ITS: Introduce msi_desc for LPIs vijayak
2016-02-01  9:26 ` [PATCH v8 08/28] xen/arm: ITS: Add APIs to add and assign device vijayak
2016-02-01  9:26 ` [PATCH v8 09/28] xen/arm: ITS: Introduce gic_is_lpi helper function vijayak
2016-02-01  9:26 ` [PATCH v8 10/28] xen/arm: ITS: Implement hw_irq_controller for LPIs vijayak
2016-02-01  9:26 ` [PATCH v8 11/28] xen/arm: ITS: Enable compilation of physical ITS driver vijayak
2016-02-01  9:26 ` [PATCH v8 12/28] xen/arm: ITS: Plumb hw_irq_controller for LPIs vijayak
2016-02-01  9:26 ` [PATCH v8 13/28] xen/arm: Correct GICD_TYPER register definition typos vijayak
2016-02-01  9:26 ` [PATCH v8 14/28] xen/arm: ITS: Initialize physical ITS and export lpi support vijayak
2016-02-01  9:26 ` [PATCH v8 15/28] xen/arm: ITS: Add virtual ITS driver vijayak
2016-02-01  9:26 ` [PATCH v8 16/28] xen/arm: ITS: Add virtual ITS commands support vijayak
2016-02-01  9:26 ` [PATCH v8 17/28] xen/arm: ITS: Add GITS registers emulation vijayak
2016-02-01  9:26 ` [PATCH v8 18/28] xen/arm: ITS: Export ITS info to Virtual ITS vijayak
2016-02-01  9:26 ` [PATCH v8 19/28] xen/arm: ITS: Store the number of LPIs allocated per domain vijayak
2016-02-01  9:26 ` vijayak [this message]
2016-02-01  9:26 ` [PATCH v8 21/28] xen/arm: ITS: Add GICR register emulation vijayak
2016-02-01  9:26 ` [PATCH v8 22/28] xen/arm: ITS: Allocate irq descriptors for LPIs vijayak
2016-02-01  9:26 ` [PATCH v8 23/28] xen/arm: ITS: Allocate pending_lpi " vijayak
2016-02-01  9:26 ` [PATCH v8 24/28] xen/arm: ITS: Route LPIs vijayak
2016-02-01  9:26 ` [PATCH v8 25/28] xen/arm: ITS: Add domain specific ITS initialization vijayak
2016-02-01  9:26 ` [PATCH v8 26/28] xen/arm: ITS: Map ITS translation space vijayak
2016-02-01  9:26 ` [PATCH v8 27/28] xen/arm: ITS: Generate ITS node for Dom0 vijayak
2016-02-01  9:26 ` [PATCH v8 28/28] xen/arm: ITS: Add pci devices in ThunderX vijayak
2016-04-08 13:42 ` [PATCH v8 00/28] Add ITS support Steve Capper
2016-04-09 23:25   ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454318798-31913-21-git-send-email-vijayak@caviumnetworks.com \
    --to=vijayak@caviumnetworks.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Prasun.Kapoor@caviumnetworks.com \
    --cc=Vijaya.Kumar@caviumnetworks.com \
    --cc=julien.grall@citrix.com \
    --cc=manish.jaggi@caviumnetworks.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=vijay.kilari@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.