]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commitf0c0c330f7bb1a640968798b63c0dffc6a8af0ec
tree9474de30fe654ca6208cc7944d0790106f02861d
parent64ebc9e24074403c4127b06c0203f3e7b3367e69
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