aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2011-11-24 04:38:24 -0500
committerAvi Kivity <avi@redhat.com>2011-12-27 04:17:35 -0500
commitbe593d6286075801bba6d60fa466a39c24cc7616 (patch)
tree7d2b156d7a9fa19700cb7ac5327a15093114905a /arch
parent93a5cef07d686a0341d056b0f930a762c7174a13 (diff)
KVM: introduce update_memslots function
Introduce update_memslots to update slot which will be update to kvm->memslots Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index af546b768ffd..917a287d21c8 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3546,7 +3546,7 @@ int kvm_vm_ioctl_get_dirty_log(struct kvm *kvm,
3546 memslot = &slots->memslots[log->slot]; 3546 memslot = &slots->memslots[log->slot];
3547 memslot->dirty_bitmap = dirty_bitmap; 3547 memslot->dirty_bitmap = dirty_bitmap;
3548 memslot->nr_dirty_pages = 0; 3548 memslot->nr_dirty_pages = 0;
3549 slots->generation++; 3549 update_memslots(slots, NULL);
3550 3550
3551 old_slots = kvm->memslots; 3551 old_slots = kvm->memslots;
3552 rcu_assign_pointer(kvm->memslots, slots); 3552 rcu_assign_pointer(kvm->memslots, slots);