aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-02-18 04:25:22 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:36:13 -0500
commit70e335e16882df5b5d6971022e63c3603a1e8c23 (patch)
treea15adffbba25223c7232a6b349a5307cdcad48bf /include
parentfa8273e9549b3cee2947d1aebe5242e7a25eb3de (diff)
KVM: Convert kvm->requests_lock to raw_spinlock_t
The code relies on kvm->requests_lock inhibiting preemption. Noted by Jan Kiszka. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 3145b281de9d..a3fd0f91d943 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -161,7 +161,7 @@ struct kvm_memslots {
161 161
162struct kvm { 162struct kvm {
163 spinlock_t mmu_lock; 163 spinlock_t mmu_lock;
164 spinlock_t requests_lock; 164 raw_spinlock_t requests_lock;
165 struct mutex slots_lock; 165 struct mutex slots_lock;
166 struct mm_struct *mm; /* userspace tied to this vm */ 166 struct mm_struct *mm; /* userspace tied to this vm */
167 struct kvm_memslots *memslots; 167 struct kvm_memslots *memslots;