]> 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)
commitadad8143e6c8f6ada44245e87a63ab9269425db7
tree9474de30fe654ca6208cc7944d0790106f02861d
parent78950e10f7a243388190d7b7234955645e1bc531
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