public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM: LAPIC: make sure IRR bitmap is scanned after vm load
@ 2009-12-14 19:37 Marcelo Tosatti
  2009-12-15 10:12 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Tosatti @ 2009-12-14 19:37 UTC (permalink / raw)
  To: Avi Kivity, Gleb Natapov; +Cc: kvm


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 <mtosatti@redhat.com>

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)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-15 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 19:37 KVM: LAPIC: make sure IRR bitmap is scanned after vm load Marcelo Tosatti
2009-12-15 10:12 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox