]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Hold kvm->mmu_lock across updating nested pte rc bits
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 21 Dec 2018 03:28:39 +0000 (14:28 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 21 Dec 2018 03:37:43 +0000 (14:37 +1100)
commitf79d79bbd5983b25766957bd27af5084ab8cedbe
treef29d6717e7c1d666f362dd1ca0b3aa5e5575e44c
parent5dbee868ad3d06d04e7d44a03fa29e045e0cd71a
KVM: PPC: Book3S HV: Hold kvm->mmu_lock across updating nested pte rc bits

We already hold the kvm->mmu_lock spin lock across updating the rc bits
in the pte for the L1 guest. Continue to hold the lock across updating
the rc bits in the pte for the nested guest as well to prevent
invalidations from occurring.

Signed-off-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv_nested.c