KVM: trivial fix comment regarding __kvm_set_memory_region
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Mon, 27 Oct 2014 15:22:56 +0000 (16:22 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:30 +0000 (12:07 +0100)
commit 72dc67a69690 ("KVM: remove the usage of the mmap_sem for the protection of the memory slots.")
changed the lock which will be taken. This should be reflected in the function
commentary.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c

index 25ffac9e947d9d3e2d554e6c351dfa51811c0354..3a31ec6e396bdb83146bc06a828cc85b19ccf261 100644 (file)
@@ -760,7 +760,7 @@ static struct kvm_memslots *install_new_memslots(struct kvm *kvm,
  *
  * Discontiguous memory is allowed, mostly for framebuffers.
  *
- * Must be called holding mmap_sem for write.
+ * Must be called holding kvm->slots_lock for write.
  */
 int __kvm_set_memory_region(struct kvm *kvm,
                            struct kvm_userspace_memory_region *mem)