aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDominik Dingel <dingel@linux.vnet.ibm.com>2014-10-27 11:22:56 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-03 06:07:30 -0500
commit02d5d55b7e39b63feb71bc49a75f58d342527d16 (patch)
tree48284884c4fed7e8943c11539b45b9d7c1ea5b94 /virt
parent612263b30c900b534fa76609d314ed55c255a94e (diff)
KVM: trivial fix comment regarding __kvm_set_memory_region
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>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 25ffac9e947d..3a31ec6e396b 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -760,7 +760,7 @@ static struct kvm_memslots *install_new_memslots(struct kvm *kvm,
760 * 760 *
761 * Discontiguous memory is allowed, mostly for framebuffers. 761 * Discontiguous memory is allowed, mostly for framebuffers.
762 * 762 *
763 * Must be called holding mmap_sem for write. 763 * Must be called holding kvm->slots_lock for write.
764 */ 764 */
765int __kvm_set_memory_region(struct kvm *kvm, 765int __kvm_set_memory_region(struct kvm *kvm,
766 struct kvm_userspace_memory_region *mem) 766 struct kvm_userspace_memory_region *mem)