diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-07-09 10:45:49 +0100 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2014-07-11 04:57:37 -0700 |
commit | 67b2abfedb7b861bead93400fa315c5c30879d51 (patch) | |
tree | 529c2f72b358fc23da95392471a3ed83ebd6ff93 /arch/arm64/include/asm/kvm_host.h | |
parent | 754d37726010d872f1f714a8ce8920acdfa4978c (diff) | |
download | op-kernel-dev-67b2abfedb7b861bead93400fa315c5c30879d51.zip op-kernel-dev-67b2abfedb7b861bead93400fa315c5c30879d51.tar.gz |
arm64: KVM: vgic: enable GICv2 emulation on top on GICv3 hardware
Add the last missing bits that enable GICv2 emulation on top of
GICv3 hardware.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_host.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 4c182d0..4ae9213 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h @@ -216,6 +216,13 @@ static inline void vgic_arch_setup(const struct vgic_params *vgic) __vgic_sr_vectors.restore_vgic = __restore_vgic_v2_state; break; +#ifdef CONFIG_ARM_GIC_V3 + case VGIC_V3: + __vgic_sr_vectors.save_vgic = __save_vgic_v3_state; + __vgic_sr_vectors.restore_vgic = __restore_vgic_v3_state; + break; +#endif + default: BUG(); } |