diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-06-09 13:49:33 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-06-15 10:44:59 +0200 |
commit | 59da1cbfd840d69bd7a310249924da3fc202c417 (patch) | |
tree | ad84f233aee206101e3738beb47beba0fb09300e /include/kvm | |
parent | KVM: arm64: Make kvm_condition_valid32() accessible from EL2 (diff) | |
download | linux-59da1cbfd840d69bd7a310249924da3fc202c417.tar.xz linux-59da1cbfd840d69bd7a310249924da3fc202c417.zip |
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>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_vgic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 2d923a6b2175..34dba516ef24 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h @@ -292,6 +292,7 @@ struct vgic_cpu { }; extern struct static_key_false vgic_v2_cpuif_trap; +extern struct static_key_false vgic_v3_cpuif_trap; int kvm_vgic_addr(struct kvm *kvm, unsigned long type, u64 *addr, bool write); void kvm_vgic_early_init(struct kvm *kvm); |