aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/lapic.c')
-rw-r--r--arch/x86/kvm/lapic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 556397ee4809..67d07e051436 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -1250,10 +1250,10 @@ static void apic_manage_nmi_watchdog(struct kvm_lapic *apic, u32 lvt0_val)
1250 if (!nmi_wd_enabled) { 1250 if (!nmi_wd_enabled) {
1251 apic_debug("Receive NMI setting on APIC_LVT0 " 1251 apic_debug("Receive NMI setting on APIC_LVT0 "
1252 "for cpu %d\n", apic->vcpu->vcpu_id); 1252 "for cpu %d\n", apic->vcpu->vcpu_id);
1253 apic->vcpu->kvm->arch.vapics_in_nmi_mode++; 1253 atomic_inc(&apic->vcpu->kvm->arch.vapics_in_nmi_mode);
1254 } 1254 }
1255 } else if (nmi_wd_enabled) 1255 } else if (nmi_wd_enabled)
1256 apic->vcpu->kvm->arch.vapics_in_nmi_mode--; 1256 atomic_dec(&apic->vcpu->kvm->arch.vapics_in_nmi_mode);
1257} 1257}
1258 1258
1259static int apic_reg_write(struct kvm_lapic *apic, u32 reg, u32 val) 1259static int apic_reg_write(struct kvm_lapic *apic, u32 reg, u32 val)