]> Git Repo - linux.git/commitdiff
KVM: LAPIC: make sure IRR bitmap is scanned after vm load
authorMarcelo Tosatti <[email protected]>
Mon, 14 Dec 2009 19:37:35 +0000 (17:37 -0200)
committerMarcelo Tosatti <[email protected]>
Sun, 27 Dec 2009 15:36:31 +0000 (13:36 -0200)
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.

Cc: [email protected]
Signed-off-by: Marcelo Tosatti <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
arch/x86/kvm/lapic.c

index cd60c0bd1b32b158d70f43e373fcd6e477883b10..3063a0c4858b462a23dd8e2b7d6b81342a203fc1 100644 (file)
@@ -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)
This page took 0.055128 seconds and 4 git commands to generate.