summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip/irq-gic-v4.c
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-03-04 21:33:22 +0100
committerMarc Zyngier <maz@kernel.org>2020-03-24 13:15:51 +0100
commitd50676f5ce8481b98f9bbc1514b5d3f8747dd3c2 (patch)
tree0faf5de54ca17723566583a7b8657206078d7c5f /drivers/irqchip/irq-gic-v4.c
parentirqchip/gic-v4.1: Add VSGI allocation/teardown (diff)
downloadlinux-d50676f5ce8481b98f9bbc1514b5d3f8747dd3c2.tar.xz
linux-d50676f5ce8481b98f9bbc1514b5d3f8747dd3c2.zip
irqchip/gic-v4.1: Add VSGI property setup
Add the SGI configuration entry point for KVM to use. Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Link: https://lore.kernel.org/r/20200304203330.4967-16-maz@kernel.org
Diffstat (limited to 'drivers/irqchip/irq-gic-v4.c')
-rw-r--r--drivers/irqchip/irq-gic-v4.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-v4.c b/drivers/irqchip/irq-gic-v4.c
index 99b33f60ac63..0c18714ae13e 100644
--- a/drivers/irqchip/irq-gic-v4.c
+++ b/drivers/irqchip/irq-gic-v4.c
@@ -320,6 +320,19 @@ int its_prop_update_vlpi(int irq, u8 config, bool inv)
return irq_set_vcpu_affinity(irq, &info);
}
+int its_prop_update_vsgi(int irq, u8 priority, bool group)
+{
+ struct its_cmd_info info = {
+ .cmd_type = PROP_UPDATE_VSGI,
+ {
+ .priority = priority,
+ .group = group,
+ },
+ };
+
+ return irq_set_vcpu_affinity(irq, &info);
+}
+
int its_init_v4(struct irq_domain *domain,
const struct irq_domain_ops *vpe_ops,
const struct irq_domain_ops *sgi_ops)