KVM: arm64: GICv4.1: Allow SGIs to switch between HW and SW interrupts
authorMarc Zyngier <maz@kernel.org>
Wed, 4 Mar 2020 20:33:26 +0000 (20:33 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 24 Mar 2020 12:15:51 +0000 (12:15 +0000)
commitbacf2c60548befa8a31c2f19ef65bf2177fda33f
tree0b87440d4d1ad3b4eabefb1688e027f42d05f03b
parentef1820be47773012d7526abb8c79befcc1d7b607
KVM: arm64: GICv4.1: Allow SGIs to switch between HW and SW interrupts

In order to let a guest buy in the new, active-less SGIs, we
need to be able to switch between the two modes.

Handle this by stopping all guest activity, transfer the state
from one mode to the other, and resume the guest. Nothing calls
this code so far, but a later patch will plug it into the MMIO
emulation.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Link: https://lore.kernel.org/r/20200304203330.4967-20-maz@kernel.org
include/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic-v4.c
virt/kvm/arm/vgic/vgic.h