diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/i8254.c | 6 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 8 |
2 files changed, 3 insertions, 11 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index c842060c6c04..fdaa0f00e478 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c | |||
@@ -596,10 +596,8 @@ void kvm_free_pit(struct kvm *kvm) | |||
596 | static void __inject_pit_timer_intr(struct kvm *kvm) | 596 | static void __inject_pit_timer_intr(struct kvm *kvm) |
597 | { | 597 | { |
598 | mutex_lock(&kvm->lock); | 598 | mutex_lock(&kvm->lock); |
599 | kvm_ioapic_set_irq(kvm->arch.vioapic, 0, 1); | 599 | kvm_set_irq(kvm, 0, 1); |
600 | kvm_ioapic_set_irq(kvm->arch.vioapic, 0, 0); | 600 | kvm_set_irq(kvm, 0, 0); |
601 | kvm_pic_set_irq(pic_irqchip(kvm), 0, 1); | ||
602 | kvm_pic_set_irq(pic_irqchip(kvm), 0, 0); | ||
603 | mutex_unlock(&kvm->lock); | 601 | mutex_unlock(&kvm->lock); |
604 | } | 602 | } |
605 | 603 | ||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index fffdf4f69c5a..5b3c8821b191 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -1956,13 +1956,7 @@ long kvm_arch_vm_ioctl(struct file *filp, | |||
1956 | goto out; | 1956 | goto out; |
1957 | if (irqchip_in_kernel(kvm)) { | 1957 | if (irqchip_in_kernel(kvm)) { |
1958 | mutex_lock(&kvm->lock); | 1958 | mutex_lock(&kvm->lock); |
1959 | if (irq_event.irq < 16) | 1959 | kvm_set_irq(kvm, irq_event.irq, irq_event.level); |
1960 | kvm_pic_set_irq(pic_irqchip(kvm), | ||
1961 | irq_event.irq, | ||
1962 | irq_event.level); | ||
1963 | kvm_ioapic_set_irq(kvm->arch.vioapic, | ||
1964 | irq_event.irq, | ||
1965 | irq_event.level); | ||
1966 | mutex_unlock(&kvm->lock); | 1960 | mutex_unlock(&kvm->lock); |
1967 | r = 0; | 1961 | r = 0; |
1968 | } | 1962 | } |