]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Fix nested guest RC bits update
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 11 Jun 2020 03:05:59 +0000 (13:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 12 Jun 2020 06:19:53 +0000 (16:19 +1000)
commit0282911e8ae200cb00a4eb4e941a2a607a779603
tree53768e44e785871ad2371ab680e438c1a37270e3
parentf7ac9f450c553a65420d29775d116a8227eb70e4
KVM: PPC: Fix nested guest RC bits update

Before commit 622f610569f8 ("powerpc/kvm/book3s: Use kvm helpers
to walk shadow or secondary table") we called __find_linux_pte() with
a page table pointer from a kvm_nested_guest struct but
now we rely on kvmhv_find_nested() which takes an L1 LPID and returns
a kvm_nested_guest pointer, however we pass a L0 LPID there and
the L2 guest hangs.

This fixes the LPID passed to kvmppc_hv_handle_set_rc().

Fixes: 622f610569f8 ("powerpc/kvm/book3s: Use kvm helpers to walk shadow or secondary table")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200611030559.75257-1-aik@ozlabs.ru
arch/powerpc/kvm/book3s_hv_nested.c