Skip to contentSkip to conversation

KVM: LAPIC: make sure IRR bitmap is scanned after vm load

PATCH Applied Marcelo Tosatti 2 participants 2 messages Dec 14, 2009 – Dec 15, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

arch/x86/kvm/lapic.c +1 -0
index cd60c0b..3063a0c 100644
@@ -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)
Applied
#1 lore raw
Quoted 5 lines · Marcelo Tosatti

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.

Thanks, applied and queued for .32 and .33.

Signature · 1 line
error compiling committee.c: too many arguments to function