diff options
author | Dominik Dingel <dingel@linux.vnet.ibm.com> | 2014-10-27 16:22:56 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-11-03 12:07:30 +0100 |
commit | 02d5d55b7e39b63feb71bc49a75f58d342527d16 (patch) | |
tree | 48284884c4fed7e8943c11539b45b9d7c1ea5b94 | |
parent | KVM: x86: Enable Intel AVX-512 for guest (diff) | |
download | linux-02d5d55b7e39b63feb71bc49a75f58d342527d16.tar.xz 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>
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
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) |