aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8254.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r--arch/x86/kvm/i8254.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
index 4dce6f8b6129..f90952f64e79 100644
--- a/arch/x86/kvm/i8254.c
+++ b/arch/x86/kvm/i8254.c
@@ -305,7 +305,7 @@ static void pit_do_work(struct kthread_work *work)
305 * LVT0 to NMI delivery. Other PIC interrupts are just sent to 305 * LVT0 to NMI delivery. Other PIC interrupts are just sent to
306 * VCPU0, and only if its LVT0 is in EXTINT mode. 306 * VCPU0, and only if its LVT0 is in EXTINT mode.
307 */ 307 */
308 if (kvm->arch.vapics_in_nmi_mode > 0) 308 if (atomic_read(&kvm->arch.vapics_in_nmi_mode) > 0)
309 kvm_for_each_vcpu(i, vcpu, kvm) 309 kvm_for_each_vcpu(i, vcpu, kvm)
310 kvm_apic_nmi_wd_deliver(vcpu); 310 kvm_apic_nmi_wd_deliver(vcpu);
311 } 311 }