summaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-06-29 22:24:45 +0300
committerAvi Kivity <avi@redhat.com>2009-09-10 08:33:06 +0300
commit22fc02943a630417cb71734cd0b2e6f8dc4210b6 (patch)
treeb6cb7380d7b1c52df1af5f9c4e14dbcffdbb1ea3 /virt/kvm/kvm_main.c
parentbda9020e2463ec94db9f97e8615f3bae22069838 (diff)
downloadblackbird-op-linux-22fc02943a630417cb71734cd0b2e6f8dc4210b6.tar.gz
blackbird-op-linux-22fc02943a630417cb71734cd0b2e6f8dc4210b6.zip
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>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-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 594606526620..fc1b58a72757 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -68,7 +68,7 @@ MODULE_LICENSE("GPL");
/*
* Ordering of locks:
*
- * kvm->lock --> kvm->irq_lock
+ * kvm->slots_lock --> kvm->lock --> kvm->irq_lock
*/
DEFINE_SPINLOCK(kvm_lock);
OpenPOWER on IntegriCloud