commit | 22fc02943a630417cb71734cd0b2e6f8dc4210b6 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Mon Jun 29 22:24:45 2009 +0300 |
committer | Avi Kivity <avi@redhat.com> | Thu Sep 10 08:33:06 2009 +0300 |
tree | b6cb7380d7b1c52df1af5f9c4e14dbcffdbb1ea3 | |
parent | bda9020e2463ec94db9f97e8615f3bae22069838 [diff] |
KVM: document lock nesting rule Document kvm->lock nesting within kvm->slots_lock Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5946065..fc1b58a 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c
@@ -68,7 +68,7 @@ /* * Ordering of locks: * - * kvm->lock --> kvm->irq_lock + * kvm->slots_lock --> kvm->lock --> kvm->irq_lock */ DEFINE_SPINLOCK(kvm_lock);