]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Introduce kvmhv_update_nest_rmap_rc_list()
authorSuraj Jitindar Singh <sjitindarsingh@gmail.com>
Fri, 21 Dec 2018 03:28:42 +0000 (14:28 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 21 Dec 2018 03:39:35 +0000 (14:39 +1100)
commit4765459dd1dd1b7cc770e520f163217cbd33a7be
treeb7b8aa93809f91b4ff357f32705f3e18e0f22c18
parent3a2500b818c8e84307e8aa94d4590f9df7e0ad99
KVM: PPC: Book3S HV: Introduce kvmhv_update_nest_rmap_rc_list()

Introduce a function kvmhv_update_nest_rmap_rc_list() which for a given
nest_rmap list will traverse it, find the corresponding pte in the shadow
page tables, and if it still maps the same host page update the rc bits
accordingly.

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