diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-09-10 06:58:35 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-09-30 03:21:46 -0400 |
commit | 4a937f96f3a29c58b7edd349d2e4dfac371efdf2 (patch) | |
tree | 67471522814264ea197e724a1ca09a424bdbba6c /Documentation/virtual/kvm | |
parent | 4fa92fb25ae5a2d79d872ab54df511c831b1f363 (diff) |
KVM: protect kvm_usage_count with its own spinlock
The VM list need not be protected by a raw spinlock. Separate the
two so that kvm_lock can be made non-raw.
Cc: kvm@vger.kernel.org
Cc: gleb@redhat.com
Cc: jan.kiszka@siemens.com
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/virtual/kvm')
-rw-r--r-- | Documentation/virtual/kvm/locking.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Documentation/virtual/kvm/locking.txt b/Documentation/virtual/kvm/locking.txt index a9f366e73c8e..ba9e1c2150c2 100644 --- a/Documentation/virtual/kvm/locking.txt +++ b/Documentation/virtual/kvm/locking.txt | |||
@@ -135,7 +135,11 @@ Name: kvm_lock | |||
135 | Type: raw_spinlock | 135 | Type: raw_spinlock |
136 | Arch: any | 136 | Arch: any |
137 | Protects: - vm_list | 137 | Protects: - vm_list |
138 | - hardware virtualization enable/disable | 138 | |
139 | Name: kvm_count_lock | ||
140 | Type: raw_spinlock_t | ||
141 | Arch: any | ||
142 | Protects: - hardware virtualization enable/disable | ||
139 | Comment: 'raw' because hardware enabling/disabling must be atomic /wrt | 143 | Comment: 'raw' because hardware enabling/disabling must be atomic /wrt |
140 | migration. | 144 | migration. |
141 | 145 | ||