diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-03-14 06:02:11 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-20 06:41:24 -0400 |
commit | cf9eeac46350b8b43730b7dc5e999757bed089a4 (patch) | |
tree | a71645c281a36c080f58bf660a95c176070e4f83 /include | |
parent | 02626b6af5d2bc62db3bb85fc2891b2725535d44 (diff) |
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 ec171c1d0878..40bb1c661a6e 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -556,7 +556,7 @@ struct kvm_assigned_dev_kernel { | |||
556 | struct pci_dev *dev; | 556 | struct pci_dev *dev; |
557 | struct kvm *kvm; | 557 | struct kvm *kvm; |
558 | spinlock_t intx_lock; | 558 | spinlock_t intx_lock; |
559 | struct mutex intx_mask_lock; | 559 | spinlock_t intx_mask_lock; |
560 | char irq_name[32]; | 560 | char irq_name[32]; |
561 | struct pci_saved_state *pci_saved_state; | 561 | struct pci_saved_state *pci_saved_state; |
562 | }; | 562 | }; |