aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2015-06-30 16:19:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-10 12:49:37 -0400
commit58382447b9a9989da551a7b17e72756f6e238bb8 (patch)
tree0f90221119bb6f0d1cb27b8017ee8a471a4ae832
parentda75b45af7778af80c7c1d9853868e9bb4b75065 (diff)
KVM: x86: properly restore LVT0
commit db1385624c686fe99fe2d1b61a36e1537b915d08 upstream. Legacy NMI watchdog didn't work after migration/resume, because vapics_in_nmi_mode was left at 0. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/x86/kvm/lapic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
index 4c7deb4f78a1..556397ee4809 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -1808,6 +1808,7 @@ void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu,
1808 apic_update_ppr(apic); 1808 apic_update_ppr(apic);
1809 hrtimer_cancel(&apic->lapic_timer.timer); 1809 hrtimer_cancel(&apic->lapic_timer.timer);
1810 apic_update_lvtt(apic); 1810 apic_update_lvtt(apic);
1811 apic_manage_nmi_watchdog(apic, kvm_apic_get_reg(apic, APIC_LVT0));
1811 update_divide_count(apic); 1812 update_divide_count(apic);
1812 start_apic_timer(apic); 1813 start_apic_timer(apic);
1813 apic->irr_pending = true; 1814 apic->irr_pending = true;