Skip to contentSkip to conversation

live migration support for VM dirty log management

PATCH Superseded Mario Smarduch 1 participant 1 message Apr 29, 2014

Subsystems (4)

v4 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 9f827c8..c5c27d8 100644
@@ -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
index b916478..6ca3e84 100644
@@ -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