diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-03-14 11:02:11 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-20 12:41:24 +0200 |
commit | cf9eeac46350b8b43730b7dc5e999757bed089a4 (patch) | |
tree | a71645c281a36c080f58bf660a95c176070e4f83 /include | |
parent | 02626b6af5d2bc62db3bb85fc2891b2725535d44 (diff) | |
download | op-kernel-dev-cf9eeac46350b8b43730b7dc5e999757bed089a4.zip op-kernel-dev-cf9eeac46350b8b43730b7dc5e999757bed089a4.tar.gz |
KVM: Convert intx_mask_lock to spin lock
As kvm_notify_acked_irq calls kvm_assigned_dev_ack_irq under
rcu_read_lock, we cannot use a mutex in the latter function. Switch to a
spin lock to address this.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
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 ec171c1..40bb1c6 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -556,7 +556,7 @@ struct kvm_assigned_dev_kernel { struct pci_dev *dev; struct kvm *kvm; spinlock_t intx_lock; - struct mutex intx_mask_lock; + spinlock_t intx_mask_lock; char irq_name[32]; struct pci_saved_state *pci_saved_state; }; |