powerpc/kvm/book3s: use find_kvm_host_pte in pute_tce functions
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 5 May 2020 07:17:22 +0000 (12:47 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 May 2020 11:20:15 +0000 (21:20 +1000)
commit7769a3394bdf10fe2289ea1f5059aa750a6218c2
tree784a42d6407ded86586faa5701e1be11e3941fd5
parente3d8ed5518c7f50e24d2530b36d14b6c4284769f
powerpc/kvm/book3s: use find_kvm_host_pte in pute_tce functions

Current code just hold rmap lock to ensure parallel page table update is
prevented. That is not sufficient. The kernel should also check whether
a mmu_notifer callback was running in parallel.

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-16-aneesh.kumar@linux.ibm.com
arch/powerpc/kvm/book3s_64_vio_hv.c