KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked
commitfc66cf4790189b5ec4f8b9e8aacc8d37cc8e3daa
authorAvi Kivity <avi@redhat.com>
Fri, 17 Apr 2009 22:40:09 +0000 (17 19:40 -0300)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:03 +0000 (27 10:37 -0700)
treef48b72a7587da04e2de92986fd50be6f1d19738f
parent6f771da5da5f0b8e04b7003c823af6fdb00c57e5
KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked

upstream commit: 4780c65904f0fc4e312ee2da9383eacbe04e61ea

While the PIT is masked the guest cannot ack the irq, so the reinject logic
will never allow the interrupt to be injected.

Fix by resetting the reinjection counters on unmask.

Unbreaks Xen.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h