KVM: arm64: vgic-v3: Add hook to handle guest GICv3 sysreg accesses at EL2
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Jun 2017 11:49:33 +0000 (12:49 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 15 Jun 2017 08:44:59 +0000 (09:44 +0100)
commit59da1cbfd840d69bd7a310249924da3fc202c417
treead84f233aee206101e3738beb47beba0fb09300e
parent021234ef3752f853704ef1919e8ff33173aca093
KVM: arm64: vgic-v3: Add hook to handle guest GICv3 sysreg accesses at EL2

In order to start handling guest access to GICv3 system registers,
let's add a hook that will get called when we trap a system register
access. This is gated by a new static key (vgic_v3_cpuif_trap).

Tested-by: Alexander Graf <agraf@suse.de>
Acked-by: David Daney <david.daney@cavium.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm64/include/asm/kvm_hyp.h
arch/arm64/kvm/hyp/switch.c
include/kvm/arm_vgic.h
virt/kvm/arm/hyp/vgic-v3-sr.c
virt/kvm/arm/vgic/vgic-v3.c