]> asedeno.scripts.mit.edu Git - linux.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)
commitb5f1dd1ba4042bda191cd2e72726c920e6c2867f
treedef98c0295d188d63344faa616f02e5f78e28129
parenta1ac9e17b7c934666a780772866135b9fea17f4c
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