KVM: PPC: Book3S HV: Rename kvm_alloc_hpt() for clarity
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 20 Dec 2016 05:48:59 +0000 (16:48 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 31 Jan 2017 10:59:23 +0000 (21:59 +1100)
commitdb9a290d9c3c596e5325e2a42133594435e5de46
tree73828560dd1cfca21d325f77721108a0f67ded96
parentef1ead0c3b1dfb43d33caa4f50c8d214f86b6bc8
KVM: PPC: Book3S HV: Rename kvm_alloc_hpt() for clarity

The difference between kvm_alloc_hpt() and kvmppc_alloc_hpt() is not at
all obvious from the name.  In practice kvmppc_alloc_hpt() allocates an HPT
by whatever means, and calls kvm_alloc_hpt() which will attempt to allocate
it with CMA only.

To make this less confusing, rename kvm_alloc_hpt() to kvm_alloc_hpt_cma().
Similarly, kvm_release_hpt() is renamed kvm_free_hpt_cma().

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_builtin.c