diff options
author | Avi Kivity <avi@qumranet.com> | 2008-07-26 16:00:59 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:16 -0400 |
commit | 564f15378f04921d5749f27ec53d5e68a6d1d446 (patch) | |
tree | 5ba58d06003010de40989a99b920602a1e76fdf9 /arch/x86/kvm/irq.h | |
parent | 49dd2c492895828a90ecdf889e7fe9cfb40a82a7 (diff) |
KVM: Add irq ack notifier list
This can be used by kvm subsystems that are interested in when
interrupts are acked, for example time drift compensation.
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/irq.h')
-rw-r--r-- | arch/x86/kvm/irq.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h index 07ff2aef0c13..95fe718e3abc 100644 --- a/arch/x86/kvm/irq.h +++ b/arch/x86/kvm/irq.h | |||
@@ -83,6 +83,11 @@ static inline int irqchip_in_kernel(struct kvm *kvm) | |||
83 | void kvm_pic_reset(struct kvm_kpic_state *s); | 83 | void kvm_pic_reset(struct kvm_kpic_state *s); |
84 | 84 | ||
85 | void kvm_set_irq(struct kvm *kvm, int irq, int level); | 85 | void kvm_set_irq(struct kvm *kvm, int irq, int level); |
86 | void kvm_notify_acked_irq(struct kvm *kvm, unsigned gsi); | ||
87 | void kvm_register_irq_ack_notifier(struct kvm *kvm, | ||
88 | struct kvm_irq_ack_notifier *kian); | ||
89 | void kvm_unregister_irq_ack_notifier(struct kvm *kvm, | ||
90 | struct kvm_irq_ack_notifier *kian); | ||
86 | 91 | ||
87 | void kvm_timer_intr_post(struct kvm_vcpu *vcpu, int vec); | 92 | void kvm_timer_intr_post(struct kvm_vcpu *vcpu, int vec); |
88 | void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu); | 93 | void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu); |