From: Marc Zyngier <marc.zyngier@arm.com>
Date: Fri, 27 Oct 2017 14:28:45 +0000 (+0100)
Subject: KVM: arm/arm64: GICv4: Propagate property updates to VLPIs
X-Git-Tag: kvm-4.15-2~3^2~12
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=af340f992c56f824eb9b2cab6dce8d46ec31c98c;p=users%2Fdwmw2%2Flinux.git

KVM: arm/arm64: GICv4: Propagate property updates to VLPIs

Upon updating a property, we propagate it all the way to the physical
ITS, and ask for an INV command to be executed there.

Acked-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
---

diff --git a/virt/kvm/arm/vgic/vgic-its.c b/virt/kvm/arm/vgic/vgic-its.c
index 78d11aed1e17f..4768a0e21cc5a 100644
--- a/virt/kvm/arm/vgic/vgic-its.c
+++ b/virt/kvm/arm/vgic/vgic-its.c
@@ -297,6 +297,9 @@ static int update_lpi_config(struct kvm *kvm, struct vgic_irq *irq,
 		spin_unlock_irqrestore(&irq->irq_lock, flags);
 	}
 
+	if (irq->hw)
+		return its_prop_update_vlpi(irq->host_irq, prop, true);
+
 	return 0;
 }