]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm: remove an atomic on EOI
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Apr 2012 11:44:24 +0000 (14:44 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 18 Apr 2012 20:00:03 +0000 (23:00 +0300)
commit7100daa44bdd772fee69f7395d1f24b882f3f91b
tree45ff83eead4d84bea3c06f725aa2b7dada29a049
parent1fe042b21dc9f03feb324965f7fe042a12a8a112
kvm: remove an atomic on EOI

TMR is set with IRR but does not need to be
cleared on EOI. So we can save an atomic
operation on EOI by checking whether ioapic
needs a specific vector first.

For consistency, don't clear TMR for handled
vectors either: the spec doesn't say that
it needs to be cleared on EOI.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
arch/x86/kvm/lapic.c
virt/kvm/ioapic.c
virt/kvm/ioapic.h