KVM: change the way how lowest priority vcpu is calculated
authorGleb Natapov <gleb@redhat.com>
Thu, 5 Mar 2009 14:34:59 +0000 (16:34 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:27 +0000 (11:48 +0300)
commite1035715ef8d3171e29f9c6aee6f40d57b3fead5
tree1ead65420a4d1653692d0e4b66a4e4f7fcbef425
parent343f94fe4d16ec898da77720c03da9e09f8523d2
KVM: change the way how lowest priority vcpu is calculated

The new way does not require additional loop over vcpus to calculate
the one with lowest priority as one is chosen during delivery bitmap
construction.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/ia64/kvm/lapic.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
virt/kvm/ioapic.h
virt/kvm/irq_comm.c