KVM: Drop kvm->irq_lock lock from irq injection path
authorGleb Natapov <gleb@redhat.com>
Mon, 24 Aug 2009 08:54:26 +0000 (11:54 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:08 +0000 (09:32 +0200)
commit680b3648ba89c44ac8d0316f78a0d6e147b88809
treeb2b40034c4c33affef8b89822673cca835874651
parenteba0226bdfffe262e72b8360e4d0d12070e9a0f0
KVM: Drop kvm->irq_lock lock from irq injection path

The only thing it protects now is interrupt injection into lapic and
this can work lockless. Even now with kvm->irq_lock in place access
to lapic is not entirely serialized since vcpu access doesn't take
kvm->irq_lock.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c
virt/kvm/eventfd.c
virt/kvm/irq_comm.c
virt/kvm/kvm_main.c