diff options
author | Avi Kivity | 2010-02-18 10:25:22 +0100 |
---|---|---|
committer | Marcelo Tosatti | 2010-03-01 16:36:13 +0100 |
commit | 70e335e16882df5b5d6971022e63c3603a1e8c23 (patch) | |
tree | a15adffbba25223c7232a6b349a5307cdcad48bf /include | |
parent | KVM: Convert i8254/i8259 locks to raw_spinlocks (diff) | |
download | kernel-qcow2-linux-70e335e16882df5b5d6971022e63c3603a1e8c23.tar.gz kernel-qcow2-linux-70e335e16882df5b5d6971022e63c3603a1e8c23.tar.xz kernel-qcow2-linux-70e335e16882df5b5d6971022e63c3603a1e8c23.zip |
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.h | 2 |
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 { struct kvm { spinlock_t mmu_lock; - spinlock_t requests_lock; + raw_spinlock_t requests_lock; struct mutex slots_lock; struct mm_struct *mm; /* userspace tied to this vm */ struct kvm_memslots *memslots; |