From: Marcelo Tosatti Date: Mon, 14 Dec 2009 19:37:35 +0000 (-0200) Subject: KVM: LAPIC: make sure IRR bitmap is scanned after vm load X-Git-Tag: firefly_0821_release~11625^2~446 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3b96f9a68db8401e73955a6f6c33ec08ffed9e96;p=firefly-linux-kernel-4.4.55.git KVM: LAPIC: make sure IRR bitmap is scanned after vm load commit 6e24a6eff4571002cd48b99a2b92dc829ce39cb9 upstream. The vcpus are initialized with irr_pending set to false, but loading the LAPIC registers with pending IRR fails to reset the irr_pending variable. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index 23c217692ea9..41659fb080ba 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -1156,6 +1156,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)