KVM: Convert intx_mask_lock to spin lock
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 14 Mar 2012 10:02:11 +0000 (11:02 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 20 Mar 2012 10:41:24 +0000 (12:41 +0200)
commitcf9eeac46350b8b43730b7dc5e999757bed089a4
treea71645c281a36c080f58bf660a95c176070e4f83
parent02626b6af5d2bc62db3bb85fc2891b2725535d44
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>
include/linux/kvm_host.h
virt/kvm/assigned-dev.c