diff options
author | Amit Shah <amit.shah@qumranet.com> | 2008-06-27 08:55:02 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-10-15 04:15:12 -0400 |
commit | 867767a365ee74a3adcfaba27075eefb66b14bfd (patch) | |
tree | 896716e81ff5e13f47a15221e66d0aceeeb9456a /arch/x86/kvm/irq.h | |
parent | d98e6346350ac909f095768beb28b82368bd126f (diff) |
KVM: Introduce kvm_set_irq to inject interrupts in guests
This function injects an interrupt into the guest given the kvm struct,
the (guest) irq number and the interrupt level.
Signed-off-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/irq.h')
-rw-r--r-- | arch/x86/kvm/irq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h index 7ca47cbb48bb..07ff2aef0c13 100644 --- a/arch/x86/kvm/irq.h +++ b/arch/x86/kvm/irq.h | |||
@@ -82,6 +82,8 @@ static inline int irqchip_in_kernel(struct kvm *kvm) | |||
82 | 82 | ||
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); | ||
86 | |||
85 | void kvm_timer_intr_post(struct kvm_vcpu *vcpu, int vec); | 87 | void kvm_timer_intr_post(struct kvm_vcpu *vcpu, int vec); |
86 | void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu); | 88 | void kvm_inject_pending_timer_irqs(struct kvm_vcpu *vcpu); |
87 | void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu); | 89 | void kvm_inject_apic_timer_irqs(struct kvm_vcpu *vcpu); |