]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: KVM: Remove __kvm_hyp_code_start/__kvm_hyp_code_end
authorMarc Zyngier <marc.zyngier@arm.com>
Sat, 2 Jan 2016 14:04:48 +0000 (14:04 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:12 +0000 (18:34 +0000)
Now that we've unified the way we refer to the HYP text between
arm and arm64, drop __kvm_hyp_code_start/end, and just use the
__hyp_text_start/end symbols.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_asm.h
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_asm.h

index fa2fd253974f899641a2de14d079b6d833460ab9..4841225d10ea852d28378f9639dfa0415a55d9c4 100644 (file)
@@ -93,9 +93,6 @@ extern char __kvm_hyp_exit_end[];
 
 extern char __kvm_hyp_vector[];
 
-#define        __kvm_hyp_code_start    __hyp_text_start
-#define __kvm_hyp_code_end     __hyp_text_end
-
 extern void __kvm_flush_vm_context(void);
 extern void __kvm_tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa);
 extern void __kvm_tlb_flush_vmid(struct kvm *kvm);
index 6b76e0152e58e2ea116ac31e32def891b5d1dad8..fcf6c130c986b2d0c19ac004914228fdcf31050e 100644 (file)
@@ -1075,7 +1075,7 @@ static int init_hyp_mode(void)
        /*
         * Map the Hyp-code called directly from the host
         */
-       err = create_hyp_mappings(__kvm_hyp_code_start, __kvm_hyp_code_end);
+       err = create_hyp_mappings(__hyp_text_start, __hyp_text_end);
        if (err) {
                kvm_err("Cannot map world-switch code\n");
                goto out_free_mappings;
index 52b777b7d407cfd9c2fe5036c1c7ae96bf025c0b..2ad8930e7eb311f6fcf0cccf9b2a3ef741350d32 100644 (file)
@@ -35,9 +35,6 @@ extern char __kvm_hyp_init_end[];
 
 extern char __kvm_hyp_vector[];
 
-#define        __kvm_hyp_code_start    __hyp_text_start
-#define        __kvm_hyp_code_end      __hyp_text_end
-
 extern void __kvm_flush_vm_context(void);
 extern void __kvm_tlb_flush_vmid_ipa(struct kvm *kvm, phys_addr_t ipa);
 extern void __kvm_tlb_flush_vmid(struct kvm *kvm);