summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDominik Dingel <dingel@linux.vnet.ibm.com>2014-10-27 16:22:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-03 12:07:30 +0100
commit02d5d55b7e39b63feb71bc49a75f58d342527d16 (patch)
tree48284884c4fed7e8943c11539b45b9d7c1ea5b94 /virt
parent612263b30c900b534fa76609d314ed55c255a94e (diff)
downloadlinux-02d5d55b7e39b63feb71bc49a75f58d342527d16.tar.gz
linux-02d5d55b7e39b63feb71bc49a75f58d342527d16.tar.bz2
linux-02d5d55b7e39b63feb71bc49a75f58d342527d16.zip
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,
*
* 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)