diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-06-30 13:40:45 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-07-03 17:41:27 -0400 |
commit | 12fda8123d74903d1f65fb006fe4964e23ede0d1 (patch) | |
tree | 8fd4cb6791a0d9e2ea13db072d96b47b8aefa848 /arch/arm64/include | |
parent | 3421e9d88d7ae70fbc8c903e44a5acace8ae2d29 (diff) |
arm/arm64: KVM: Drop boot_pgd
Since we now only have one set of page tables, the concept of
boot_pgd is useless and can be removed. We still keep it as
an element of the "extended idmap" thing.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 6 | ||||
-rw-r--r-- | arch/arm64/include/asm/kvm_mmu.h | 1 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h index 88462c307510..6731d4e1c746 100644 --- a/arch/arm64/include/asm/kvm_host.h +++ b/arch/arm64/include/asm/kvm_host.h | |||
@@ -347,8 +347,7 @@ int kvm_perf_teardown(void); | |||
347 | 347 | ||
348 | struct kvm_vcpu *kvm_mpidr_to_vcpu(struct kvm *kvm, unsigned long mpidr); | 348 | struct kvm_vcpu *kvm_mpidr_to_vcpu(struct kvm *kvm, unsigned long mpidr); |
349 | 349 | ||
350 | static inline void __cpu_init_hyp_mode(phys_addr_t boot_pgd_ptr, | 350 | static inline void __cpu_init_hyp_mode(phys_addr_t pgd_ptr, |
351 | phys_addr_t pgd_ptr, | ||
352 | unsigned long hyp_stack_ptr, | 351 | unsigned long hyp_stack_ptr, |
353 | unsigned long vector_ptr) | 352 | unsigned long vector_ptr) |
354 | { | 353 | { |
@@ -360,8 +359,7 @@ static inline void __cpu_init_hyp_mode(phys_addr_t boot_pgd_ptr, | |||
360 | } | 359 | } |
361 | 360 | ||
362 | void __kvm_hyp_teardown(void); | 361 | void __kvm_hyp_teardown(void); |
363 | static inline void __cpu_reset_hyp_mode(phys_addr_t boot_pgd_ptr, | 362 | static inline void __cpu_reset_hyp_mode(phys_addr_t phys_idmap_start) |
364 | phys_addr_t phys_idmap_start) | ||
365 | { | 363 | { |
366 | kvm_call_hyp(__kvm_hyp_teardown, phys_idmap_start); | 364 | kvm_call_hyp(__kvm_hyp_teardown, phys_idmap_start); |
367 | } | 365 | } |
diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h index 2970537161d2..390acabdb1b2 100644 --- a/arch/arm64/include/asm/kvm_mmu.h +++ b/arch/arm64/include/asm/kvm_mmu.h | |||
@@ -170,7 +170,6 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run); | |||
170 | void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu); | 170 | void kvm_mmu_free_memory_caches(struct kvm_vcpu *vcpu); |
171 | 171 | ||
172 | phys_addr_t kvm_mmu_get_httbr(void); | 172 | phys_addr_t kvm_mmu_get_httbr(void); |
173 | phys_addr_t kvm_mmu_get_boot_httbr(void); | ||
174 | phys_addr_t kvm_get_idmap_vector(void); | 173 | phys_addr_t kvm_get_idmap_vector(void); |
175 | phys_addr_t kvm_get_idmap_start(void); | 174 | phys_addr_t kvm_get_idmap_start(void); |
176 | int kvm_mmu_init(void); | 175 | int kvm_mmu_init(void); |