]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked
authorAvi Kivity <avi@redhat.com>
Sun, 4 Jan 2009 16:06:06 +0000 (18:06 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:03 +0000 (11:03 +0200)
commit4780c65904f0fc4e312ee2da9383eacbe04e61ea
tree24f085916e1a795f67ddc72fee26d2684fe2fb77
parent75858a84a6207f5e60196f6bbd18fde4250e5759
KVM: Reset PIT irq injection logic when the PIT IRQ is unmasked

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>
arch/x86/kvm/i8254.c
arch/x86/kvm/i8254.h