]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MIPS/MMU: Handle dirty logging on GPA faults
authorJames Hogan <james.hogan@imgtec.com>
Tue, 6 Dec 2016 14:57:10 +0000 (14:57 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:25 +0000 (15:21 +0000)
commitb56d17dbe881186f1ccd597250396f6c0c964c4f
treedef98c0295d188d63344faa616f02e5f78e28129
parent416aea37419b77c6de6d6e1583d3ffb74c4fe4dd
KVM: MIPS/MMU: Handle dirty logging on GPA faults

Update kvm_mips_map_page() to handle logging of dirty guest physical
pages. Upcoming patches will propagate the dirty bit to the GVA page
tables.

A fast path is added for handling protection bits that can be resolved
without calling into KVM, currently just dirtying of clean pages being
written to.

The slow path marks the GPA page table entry writable only on writes,
and at the same time marks the page dirty in the dirty page logging
bitmask.

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/kvm/mmu.c