Commit 02d5d55b authored by Dominik Dingel's avatar Dominik Dingel Committed by Paolo Bonzini

KVM: trivial fix comment regarding __kvm_set_memory_region

commit 72dc67a6 ("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: default avatarDominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 612263b3
...@@ -760,7 +760,7 @@ static struct kvm_memslots *install_new_memslots(struct kvm *kvm, ...@@ -760,7 +760,7 @@ static struct kvm_memslots *install_new_memslots(struct kvm *kvm,
* *
* Discontiguous memory is allowed, mostly for framebuffers. * 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, int __kvm_set_memory_region(struct kvm *kvm,
struct kvm_userspace_memory_region *mem) struct kvm_userspace_memory_region *mem)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment