OSDN Git Service

KVM: MIPS: Clean & flush on dirty page logging enable
authorJames Hogan <james.hogan@imgtec.com>
Tue, 6 Dec 2016 14:56:20 +0000 (14:56 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 3 Feb 2017 15:21:24 +0000 (15:21 +0000)
commita1ac9e17b7c934666a780772866135b9fea17f4c
treeedcfa2f286a91c45fb55d74b49f5b2c696d154ea
parente88643ba1acb48fa30345ba75cc324d7181aa2bf
KVM: MIPS: Clean & flush on dirty page logging enable

When an existing memory region has dirty page logging enabled, make the
entire slot clean (read only) so that writes will immediately start
logging dirty pages (once the dirty bit is transferred from GPA to GVA
page tables in an upcoming patch).

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/mips.c