]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/MMU: Add GPA PT mkclean helper
authorJames Hogan <james.hogan@imgtec.com>
Tue, 6 Dec 2016 14:47:47 +0000 (14:47 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:22 +0000 (15:21 +0000)
commitef804934745ce68121afd3079153a1e33355621b
tree9474de30fe654ca6208cc7944d0790106f02861d
parent8dd4800d6156554ca5dca6ebad0c50f543ab209f
KVM: MIPS/MMU: Add GPA PT mkclean helper

Add a helper function to make a range of guest physical address (GPA)
mappings in the GPA page table clean so that writes can be caught. This
will be used in a few places to manage dirty page logging.

Note that until the dirty bit is transferred from GPA page table entries
to GVA page table entries in an upcoming patch this won't trigger a TLB
modified exception on write.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/mmu.c