powerpc/mm/hash: Abstract context id allocation for KVM
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Mar 2017 11:00:46 +0000 (22:00 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:09:57 +0000 (23:09 +1100)
commita336f2f5b05c3c02876a365b8f17b3d10920dbd5
tree3988ca0b64a437539be9619805bb3dfb852ec62f
parent302413cad56820d4cd0d4fb66d01c81b4fcb1a10
powerpc/mm/hash: Abstract context id allocation for KVM

KVM wants to be able to allocate an MMU context id, which it does
currently by calling __init_new_context().

We're about to rework that code, so provide a wrapper for KVM so it
can not worry about the details.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/mmu_context.h
arch/powerpc/kvm/book3s_64_mmu_host.c
arch/powerpc/mm/mmu_context_book3s64.c