]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38d03cbbcf1083e8ccff83400aad2842a9e216a5
tree3988ca0b64a437539be9619805bb3dfb852ec62f
parent0dcb5dee35117f4764dcfea10bf8ca1ead77954d
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