diff options
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r-- | arch/x86/kvm/i8254.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 06d8f84ae8a2..15fc95b2fc05 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c | |||
@@ -669,11 +669,8 @@ static void __inject_pit_timer_intr(struct kvm *kvm) | |||
669 | * VCPU0, and only if its LVT0 is in EXTINT mode. | 669 | * VCPU0, and only if its LVT0 is in EXTINT mode. |
670 | */ | 670 | */ |
671 | if (kvm->arch.vapics_in_nmi_mode > 0) | 671 | if (kvm->arch.vapics_in_nmi_mode > 0) |
672 | for (i = 0; i < KVM_MAX_VCPUS; ++i) { | 672 | kvm_for_each_vcpu(i, vcpu, kvm) |
673 | vcpu = kvm->vcpus[i]; | 673 | kvm_apic_nmi_wd_deliver(vcpu); |
674 | if (vcpu) | ||
675 | kvm_apic_nmi_wd_deliver(vcpu); | ||
676 | } | ||
677 | } | 674 | } |
678 | 675 | ||
679 | void kvm_inject_pit_timer_irqs(struct kvm_vcpu *vcpu) | 676 | void kvm_inject_pit_timer_irqs(struct kvm_vcpu *vcpu) |