aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8254.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-01-04 18:06:06 +0200
committerAvi Kivity <avi@redhat.com>2009-03-24 11:03:03 +0200
commit4780c65904f0fc4e312ee2da9383eacbe04e61ea (patch)
tree24f085916e1a795f67ddc72fee26d2684fe2fb77 /arch/x86/kvm/i8254.h
parentKVM: Interrupt mask notifiers for ioapic (diff)
downloadlinux-dev-4780c65904f0fc4e312ee2da9383eacbe04e61ea.tar.xz
linux-dev-4780c65904f0fc4e312ee2da9383eacbe04e61ea.zip
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>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/i8254.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
index 76959c4b500e..6acbe4b505d5 100644
--- a/arch/x86/kvm/i8254.h
+++ b/arch/x86/kvm/i8254.h
@@ -46,6 +46,7 @@ struct kvm_pit {
struct kvm *kvm;
struct kvm_kpit_state pit_state;
int irq_source_id;
+ struct kvm_irq_mask_notifier mask_notifier;
};
#define KVM_PIT_BASE_ADDRESS 0x40