From: Marc Zyngier <marc.zyngier@arm.com>
Date: Tue, 20 Dec 2016 15:10:50 +0000
Subject: irqchip/gic-v3-its: Add VPE invalidation hook
Patch-mainline: v4.14-rc1
Git-commit: 5e2f764234bd0ef9542902fb608e525c41e0d7ee
References: FATE#323954
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>
Acked-by: Alexander Graf <agraf@suse.de>
---
drivers/irqchip/irq-gic-v3-its.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -2237,6 +2237,10 @@
its_vpe_deschedule(vpe);
return 0;
+ case INVALL_VPE:
+ its_send_vinvall(vpe);
+ return 0;
+
default:
return -EINVAL;
}