KVM: Add generic support for dirty page logging
authorMario Smarduch <m.smarduch@samsung.com>
Thu, 15 Jan 2015 23:58:53 +0000 (15:58 -0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 16 Jan 2015 13:40:14 +0000 (14:40 +0100)
commitba0513b5b8ffbcb0cc89e2f172c0bcb70497ba2e
treeecc95c1fc9bc4b2d6247e02edb674277966dbdb9
parenta6d5101661c88d642b1fc85657fb0c58da821aa7
KVM: Add generic support for dirty page logging

kvm_get_dirty_log() provides generic handling of dirty bitmap, currently reused
by several architectures. Building on that we intrdoduce
kvm_get_dirty_log_protect() adding write protection to mark these pages dirty
for future write access, before next KVM_GET_DIRTY_LOG ioctl call from user
space.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Mario Smarduch <m.smarduch@samsung.com>
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c