KVM: Keep track of missed timer irq injections
commit1b9778dae71dc64d3678d766c0f1fbed79c80f9f
authorEddie Dong <eddie.dong@intel.com>
Mon, 3 Sep 2007 13:56:58 +0000 (3 16:56 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:26 +0000 (13 10:18 +0200)
tree3196bbfe474119a849f35aefddb5e0922205850f
parent6e5d865c0b9679b00b5e5f0754c9fc2b6b9894d6
KVM: Keep track of missed timer irq injections

APIC timer IRQ is set every time when a certain period
expires at host time, but the guest may be descheduled
at that time and thus the irq be overwritten by later fire.
This patch keep track of firing irq numbers and decrease
only when the IRQ is injected to guest or buffered in
APIC.

Signed-off-by: Yaozu (Eddie) Dong <Eddie.Dong@intel.com>
Signed-off-by: Qing He <qing.he@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/irq.c
drivers/kvm/irq.h
drivers/kvm/kvm_main.c
drivers/kvm/lapic.c
drivers/kvm/svm.c
drivers/kvm/vmx.c