diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2015-06-12 14:06:37 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-06-12 17:12:08 +0300 |
commit | 8a14849b4a355278f0b7baf6e2da7dc7144a23e8 (patch) | |
tree | 2d674e0345a876b1c0008c644c08e562c8cf8c16 /arch/arm64/include/asm/kvm_asm.h | |
parent | 94a9e04aa16abd1194d9b4158c618ba87f5d01e6 (diff) | |
download | linux-8a14849b4a355278f0b7baf6e2da7dc7144a23e8.tar.xz |
arm64: KVM: Switch vgic save/restore to alternative_insn
So far, we configured the world-switch by having a small array
of pointers to the save and restore functions, depending on the
GIC used on the platform.
Loading these values each time is a bit silly (they never change),
and it makes sense to rely on the instruction patching instead.
This leads to a nice cleanup of the code.
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/kvm_asm.h')
-rw-r--r-- | arch/arm64/include/asm/kvm_asm.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h index 4f7310fa77f0..d13bc5eb688c 100644 --- a/arch/arm64/include/asm/kvm_asm.h +++ b/arch/arm64/include/asm/kvm_asm.h @@ -132,11 +132,6 @@ extern int __kvm_vcpu_run(struct kvm_vcpu *vcpu); extern u64 __vgic_v3_get_ich_vtr_el2(void); -extern char __save_vgic_v2_state[]; -extern char __restore_vgic_v2_state[]; -extern char __save_vgic_v3_state[]; -extern char __restore_vgic_v3_state[]; - #endif #endif /* __ARM_KVM_ASM_H__ */ |