aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/arm.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-04-12 14:12:05 -0400
committerChristoffer Dall <cdall@cs.columbia.edu>2013-04-29 01:23:10 -0400
commit4f728276fbf1e043010485d7e9275082a1c3d650 (patch)
treef7532d81637eaa647d8045f6e81c14cd5d60a210 /arch/arm/kvm/arm.c
parent0394e1f605208706e4e1999d06a4570b9f583b7f (diff)
ARM: KVM: rework HYP page table freeing
There is no point in freeing HYP page tables differently from Stage-2. They now have the same requirements, and should be dealt with the same way. Promote unmap_stage2_range to be The One True Way, and get rid of a number of nasty bugs in the process (good thing we never actually called free_hyp_pmds before...). Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Diffstat (limited to 'arch/arm/kvm/arm.c')
-rw-r--r--arch/arm/kvm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 7403f884a545..16f164a5db86 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -928,7 +928,7 @@ static int init_hyp_mode(void)
928out_free_vfp: 928out_free_vfp:
929 free_percpu(kvm_host_vfp_state); 929 free_percpu(kvm_host_vfp_state);
930out_free_mappings: 930out_free_mappings:
931 free_hyp_pmds(); 931 free_hyp_pgds();
932out_free_stack_pages: 932out_free_stack_pages:
933 for_each_possible_cpu(cpu) 933 for_each_possible_cpu(cpu)
934 free_page(per_cpu(kvm_arm_hyp_stack_page, cpu)); 934 free_page(per_cpu(kvm_arm_hyp_stack_page, cpu));