aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMario Smarduch <m.smarduch@samsung.com>2015-01-15 18:58:53 -0500
committerChristoffer Dall <christoffer.dall@linaro.org>2015-01-16 08:40:14 -0500
commitba0513b5b8ffbcb0cc89e2f172c0bcb70497ba2e (patch)
treeecc95c1fc9bc4b2d6247e02edb674277966dbdb9 /include/linux/kvm_host.h
parenta6d5101661c88d642b1fc85657fb0c58da821aa7 (diff)
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>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 26f106022c88..3b934cc94cc8 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -611,6 +611,15 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext);
611 611
612int kvm_get_dirty_log(struct kvm *kvm, 612int kvm_get_dirty_log(struct kvm *kvm,
613 struct kvm_dirty_log *log, int *is_dirty); 613 struct kvm_dirty_log *log, int *is_dirty);
614
615int kvm_get_dirty_log_protect(struct kvm *kvm,
616 struct kvm_dirty_log *log, bool *is_dirty);
617
618void kvm_arch_mmu_write_protect_pt_masked(struct kvm *kvm,
619 struct kvm_memory_slot *slot,
620 gfn_t gfn_offset,
621 unsigned long mask);
622
614int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm, 623int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
615 struct kvm_dirty_log *log); 624 struct kvm_dirty_log *log);
616 625