live migration support for VM dirty log management
Subsystems (4)
PATCH v4 3/5 live migration support for VM dirty log management
This patch adds support for keeping track of VM dirty pages, by updating per memslot dirty bitmap and write protecting the page again.
Signed-off-by Mario Smarduch <[email protected]>
--- arch/arm/include/asm/kvm_host.h | 3 ++ arch/arm/kvm/arm.c | 5 -- arch/arm/kvm/mmu.c | 101 +++++++++++++++++++++++++++++++++++++++ arch/x86/kvm/x86.c | 78 ------------------------------ virt/kvm/kvm_main.c | 84 ++++++++++++++++++++++++++++++++ 5 files changed, 188 insertions(+), 83 deletions(-)
arch/arm/include/asm/kvm_host.h +3 -0
@@ -237,5 +237,8 @@ int kvm_arm_timer_set_reg(struct kvm_vcpu *, u64 regid, u64 value);void kvm_tlb_flush_vmid (struct kvm *kvm);int kvm_mmu_slot_remove_write_access (struct kvm *kvm,int slot); +void kvm_mmu_write_protect_pt_masked (struct kvm *kvm, +struct kvm_memory_slot *slot, +gfn_t gfn_offset,unsigned long mask);#endif /* __ARM_KVM_HOST_H__ */
arch/arm/kvm/arm.c +0 -5
@@ -784,11 +784,6 @@ long kvm_arch_vcpu_ioctl(struct file *filp, } } -int kvm_vm_ioctl_get_dirty_log (struct kvm *kvm,struct kvm_dirty_log *log) -{ -return -EINVAL ; -} -static int kvm_vm_ioctl_set_device_addr (struct kvm *kvm,struct kvm_arm_device_addr *dev_addr) {
arch/arm/kvm/mmu.c +101 -0
107 lines not on this page · raw message
arch/x86/kvm/x86.c +0 -78
84 lines not on this page · raw message
virt/kvm/kvm_main.c +84 -0
90 lines not on this page · raw message
Signature · 1 line
1.7.9.5