powerpc/kvm/nested: Add helper to walk nested shadow linux page table.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 5 May 2020 07:17:17 +0000 (12:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 May 2020 11:20:15 +0000 (21:20 +1000)
commitdc891849e030199d203334b2ddd2bd4fc5a87733
tree39ef230a8d9aad3318c88860b13e2cc6929d11fb
parent4b99412ed6972cc77c1f16009e1d00323fcef9ab
powerpc/kvm/nested: Add helper to walk nested shadow linux page table.

The locking rules for walking nested shadow linux page table is different from process
scoped table. Hence add a helper for nested page table walk and also
add check whether we are holding the right locks.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200505071729.54912-11-aneesh.kumar@linux.ibm.com
arch/powerpc/kvm/book3s_hv_nested.c