summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2011-11-24 17:38:24 +0800
committerAvi Kivity <avi@redhat.com>2011-12-27 11:17:35 +0200
commitbe593d6286075801bba6d60fa466a39c24cc7616 (patch)
tree7d2b156d7a9fa19700cb7ac5327a15093114905a /arch/x86/kvm/x86.c
parent93a5cef07d686a0341d056b0f930a762c7174a13 (diff)
downloadlwn-be593d6286075801bba6d60fa466a39c24cc7616.tar.gz
lwn-be593d6286075801bba6d60fa466a39c24cc7616.zip
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/x86/kvm/x86.c')
-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,
memslot = &slots->memslots[log->slot];
memslot->dirty_bitmap = dirty_bitmap;
memslot->nr_dirty_pages = 0;
- slots->generation++;
+ update_memslots(slots, NULL);
old_slots = kvm->memslots;
rcu_assign_pointer(kvm->memslots, slots);