Skip to contentSkip to conversation

live migration support for VM dirty log management

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

Subsystems (4)

v3 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 3/4 live migration support for VM dirty log management

- made kvm_vm_ioctl_get_dirty_log() generic moved to kvm_main.c, deleted arm,x86 versions
- optimized kvm_mmu_write_protected_pt_masked() to skip upper table lookups

---
 arch/arm/include/asm/kvm_host.h |    3 ++
 arch/arm/kvm/arm.c              |    5 --
 arch/arm/kvm/mmu.c              |   99 +++++++++++++++++++++++++++++++++++++++
 arch/x86/kvm/x86.c              |   78 ------------------------------
 virt/kvm/kvm_main.c             |   82 ++++++++++++++++++++++++++++++++
 5 files changed, 184 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 +99 -0

105 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 +82 -0

88 lines not on this page · raw message

Signature · 1 line
1.7.9.5