]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit391c45138cd619449259d0241fef5d6c92141f74
tree784a42d6407ded86586faa5701e1be11e3941fd5
parent86793a3640cfe1f9bed66eec90d20093031ac0f6
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