Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754017AbbGAN36 (ORCPT ); Wed, 1 Jul 2015 09:29:58 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:37397 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753317AbbGAN3v (ORCPT ); Wed, 1 Jul 2015 09:29:51 -0400 Subject: Re: [PATCH 2/3] KVM: x86: properly restore LVT0 To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , linux-kernel@vger.kernel.org References: <1435695558-3168-1-git-send-email-rkrcmar@redhat.com> <1435695558-3168-3-git-send-email-rkrcmar@redhat.com> Cc: kvm@vger.kernel.org, Yoshida Nobuo From: Paolo Bonzini Message-ID: <5593EB4B.9020601@redhat.com> Date: Wed, 1 Jul 2015 15:29:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 In-Reply-To: <1435695558-3168-3-git-send-email-rkrcmar@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1099 Lines: 33 On 30/06/2015 22:19, Radim Krčmář wrote: > Legacy NMI watchdog didn't work after migration/resume, because > vapics_in_nmi_mode was left at 0. > > Signed-off-by: Radim Krčmář > --- > arch/x86/kvm/lapic.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c > index f49c7cca1de6..8dc32b5a4e0d 100644 > --- a/arch/x86/kvm/lapic.c > +++ b/arch/x86/kvm/lapic.c > @@ -1824,6 +1824,7 @@ void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu, > apic_update_ppr(apic); > hrtimer_cancel(&apic->lapic_timer.timer); > apic_update_lvtt(apic); > + apic_manage_nmi_watchdog(apic, kvm_apic_get_reg(apic, APIC_LVT0)); > update_divide_count(apic); > start_apic_timer(apic); > apic->irr_pending = true; > Applied already, with Cc: stable, as it is not related to APICv. Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/