]> asedeno.scripts.mit.edu Git - linux.git/commit
arm/arm64: KVM: vgic: Force VM halt when changing the active state of GICv3 PPIs/SGIs
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 18 Dec 2018 14:59:09 +0000 (14:59 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 19 Dec 2018 17:47:08 +0000 (17:47 +0000)
commit107352a24900fb458152b92a4e72fbdc83fd5510
tree64a29e98e3797df63f11ae6396785541b81c6774
parent599d79dcd18fa0f88ae15b7042c9d6b011a678b2
arm/arm64: KVM: vgic: Force VM halt when changing the active state of GICv3 PPIs/SGIs

We currently only halt the guest when a vCPU messes with the active
state of an SPI. This is perfectly fine for GICv2, but isn't enough
for GICv3, where all vCPUs can access the state of any other vCPU.

Let's broaden the condition to include any GICv3 interrupt that
has an active state (i.e. all but LPIs).

Cc: stable@vger.kernel.org
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-mmio.c