]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc1b4fd5efd925d3bda59d79c5f11b87542478716
treeecc95c1fc9bc4b2d6247e02edb674277966dbdb9
parentf9a2c3d4e114a7de27bf3238594fae176be12f86
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