KVM: Add memory slot versioning and use it to provide fast guest write interface
[linux-2.6.git] / arch / x86 / kvm / x86.c
index 71beb27..bd25477 100644 (file)
@@ -3190,6 +3190,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
                }
                memcpy(slots, kvm->memslots, sizeof(struct kvm_memslots));
                slots->memslots[log->slot].dirty_bitmap = dirty_bitmap;
+               slots->generation++;
 
                old_slots = kvm->memslots;
                rcu_assign_pointer(kvm->memslots, slots);