summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2016-12-20 16:10:50 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2017-08-31 16:31:37 +0200
commit5e2f764234bd0ef9542902fb608e525c41e0d7ee (patch)
tree2e7bee81c831753df78153bf5670710e86c4e690 /drivers
parentirqchip/gic-v3-its: Add VPE scheduling (diff)
downloadlinux-5e2f764234bd0ef9542902fb608e525c41e0d7ee.tar.xz
linux-5e2f764234bd0ef9542902fb608e525c41e0d7ee.zip
irqchip/gic-v3-its: Add VPE invalidation hook
When a guest issues a INVALL command targetting a collection, it must be translated into a VINVALL for the VPE that has this collection. This patch implements a hook that offers this functionallity to the hypervisor. Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/irqchip/irq-gic-v3-its.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index f4827040a788..21b728df7544 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -2232,6 +2232,10 @@ static int its_vpe_set_vcpu_affinity(struct irq_data *d, void *vcpu_info)
its_vpe_deschedule(vpe);
return 0;
+ case INVALL_VPE:
+ its_send_vinvall(vpe);
+ return 0;
+
default:
return -EINVAL;
}