From patchwork Mon Dec 14 19:37:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 67337 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBEJc2wV032573 for ; Mon, 14 Dec 2009 19:38:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754661AbZLNThp (ORCPT ); Mon, 14 Dec 2009 14:37:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754734AbZLNTho (ORCPT ); Mon, 14 Dec 2009 14:37:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58539 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbZLNThm (ORCPT ); Mon, 14 Dec 2009 14:37:42 -0500 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBEJbgsQ028787 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 14 Dec 2009 14:37:42 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBEJbfXa003375; Mon, 14 Dec 2009 14:37:41 -0500 Received: from amt.cnet (vpn-10-217.rdu.redhat.com [10.11.10.217]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id nBEJbebm008025; Mon, 14 Dec 2009 14:37:41 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 0F7FE68017D; Mon, 14 Dec 2009 17:37:36 -0200 (BRST) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id nBEJbZiV006541; Mon, 14 Dec 2009 17:37:35 -0200 Date: Mon, 14 Dec 2009 17:37:35 -0200 From: Marcelo Tosatti To: Avi Kivity , Gleb Natapov Cc: kvm Subject: KVM: LAPIC: make sure IRR bitmap is scanned after vm load Message-ID: <20091214193735.GA6527@amt.cnet> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index cd60c0b..3063a0c 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -1150,6 +1150,7 @@ void kvm_apic_post_state_restore(struct kvm_vcpu *vcpu) hrtimer_cancel(&apic->lapic_timer.timer); update_divide_count(apic); start_apic_timer(apic); + apic->irr_pending = true; } void __kvm_migrate_apic_timer(struct kvm_vcpu *vcpu)